diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index 81430ffcc..bc65929ec 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -1802,7 +1802,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, } // TAB opens game info menu. - Vvis :3 - Updated by detectiveren - if (g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_HOST_SETTINGS) && !ui.GetMenuDisplayed(0)) + if (g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_HOST_SETTINGS) && !ui.GetMenuDisplayed(0) && pMinecraft->screen == NULL) { if (Minecraft* pMinecraft = Minecraft::GetInstance()) { @@ -1821,6 +1821,14 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, SetFocus(g_hWnd); } + else if (g_KBMInput.IsKeyPressed(KeyboardMouseInput::KEY_SLASHCOMMANDCHAT) && app.GetGameStarted() && !ui.GetMenuDisplayed(0) && pMinecraft->screen == NULL) + // Needs to set the message with "/" when pressed. + { + g_KBMInput.ClearCharBuffer(); + pMinecraft->setScreen(new ChatScreen()); + SetFocus(g_hWnd); + } + #if 0 // has the game defined profile data been changed (by a profile load) if(app.uiGameDefinedDataChangedBitmask!=0)