Merge pull request #762 from mcourteaux/master

Fix Ctrl-Shift-Alt-R bug
This commit is contained in:
Bartosz Taudul 2024-03-28 18:26:28 +01:00 committed by GitHub
commit 565656b021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -649,9 +649,9 @@ bool View::Draw()
}
if( !m_staticView &&
( ImGui::IsModKey( ImGuiKey_LeftCtrl ) || ImGui::IsModKey( ImGuiKey_RightCtrl ) ) &&
( ImGui::IsModKey( ImGuiKey_LeftShift ) || ImGui::IsModKey( ImGuiKey_RightShift ) ) &&
( ImGui::IsModKey( ImGuiKey_LeftAlt ) || ImGui::IsModKey( ImGuiKey_RightAlt ) ) &&
( ImGui::IsKeyDown( ImGuiKey_LeftCtrl ) || ImGui::IsKeyDown( ImGuiKey_RightCtrl ) ) &&
( ImGui::IsKeyDown( ImGuiKey_LeftShift ) || ImGui::IsKeyDown( ImGuiKey_RightShift ) ) &&
( ImGui::IsKeyDown( ImGuiKey_LeftAlt ) || ImGui::IsKeyDown( ImGuiKey_RightAlt ) ) &&
ImGui::IsKeyPressed( ImGuiKey_R ) )
{
m_reconnectRequested = true;