From ae6e6f640080a1e543127edcc9bdd49ec40d1b54 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 21 Mar 2020 00:12:48 -0700 Subject: [PATCH] Ignore autorepeat key events --- input.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/input.cpp b/input.cpp index 14c1b1b..5c420b6 100644 --- a/input.cpp +++ b/input.cpp @@ -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;