mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 21:03:54 +08:00
#6037 Fix key repeat expression always false
This commit is contained in:
@@ -1129,7 +1129,7 @@ MSWindowsScreen::onKey(WPARAM wParam, LPARAM lParam)
|
||||
KeyModifierMask oldState = pollActiveModifiers();
|
||||
|
||||
// check for autorepeat
|
||||
if (m_keyState->testAutoRepeat(down, (lParam & 0x40000000u) == 1, button)) {
|
||||
if (m_keyState->testAutoRepeat(down, (lParam & 0x40000000u), button)) {
|
||||
lParam |= 0x40000000u;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user