Ignore autorepeat key events

This commit is contained in:
Cameron Gutman 2020-03-21 00:12:48 -07:00
parent f1e789abe5
commit ae6e6f6400

View File

@ -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,
KEY_ACTION_DOWN, modifiers);
return true;