Преглед изворни кода

UI: Fix hotkeys auto repeating

Clayton Groeneveld пре 5 година
родитељ
комит
e60edf53d5
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      UI/obs-app.cpp

+ 3 - 0
UI/obs-app.cpp

@@ -195,6 +195,9 @@ QObject *CreateShortcutFilter()
 					event->nativeVirtualKey());
 			}
 
+			if (event->isAutoRepeat())
+				return true;
+
 			hotkey.modifiers = TranslateQtKeyboardEventModifiers(
 				event->modifiers());