fix: from windows side send a key up if it was down before
This commit is contained in:
parent
6692fa5636
commit
5094580606
1 changed files with 3 additions and 1 deletions
|
|
@ -1087,7 +1087,9 @@ bool MSWindowsScreen::onKey(WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
|
|
||||||
// stop sending modifier keys over and over again
|
// stop sending modifier keys over and over again
|
||||||
if (isModifierRepeat(oldState, state, wParam)) {
|
// but allow up to be sent if the previous state was down
|
||||||
|
// to prevent stuck modifier keys on the client
|
||||||
|
if (down && wasDown && isModifierRepeat(oldState, state, wParam)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue