浏览代码

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());