Sfoglia il codice sorgente

UI: Fix hotkeys auto repeating

Clayton Groeneveld 5 anni fa
parent
commit
e60edf53d5
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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());