CommonHostInterface: Fix key inputs getting stuck with modifiers
This commit is contained in:
1 parent
091b745af6
commit
a48fa4097b
5 files changed
+32
-20
No files matched your search
@@ -381,7 +381,7 @@ void QtHostInterface::onDisplayWindowKeyEvent(int key, bool pressed)
|
||||
if (masked_key < countof(ImGuiIO::KeysDown))
|
||||
ImGui::GetIO().KeysDown[masked_key] = pressed;
|
||||
|
||||
HandleHostKeyEvent(key, pressed);
|
||||
HandleHostKeyEvent(key & ~Qt::KeyboardModifierMask, key & Qt::KeyboardModifierMask, pressed);
|
||||
}
|
||||
|
||||
void QtHostInterface::onDisplayWindowMouseMoveEvent(int x, int y)
|
||||
|
||||
Reference in new issue
Block a user