mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-06-19 07:10:59 +00:00
Ignore autorepeat key events
This commit is contained in:
@@ -201,6 +201,10 @@ bool MoonlightInstance::HandleInputEvent(const pp::InputEvent& event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.GetModifiers() & PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
LiSendKeyboardEvent(KEY_PREFIX << 8 | keyCode,
|
LiSendKeyboardEvent(KEY_PREFIX << 8 | keyCode,
|
||||||
KEY_ACTION_DOWN, modifiers);
|
KEY_ACTION_DOWN, modifiers);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user