소스 검색

hotkeys: Don't allow hotkeys to spam

german77 4 년 전
부모
커밋
311324e231
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/yuzu/hotkeys.cpp

+ 2 - 0
src/yuzu/hotkeys.cpp

@@ -46,6 +46,8 @@ QShortcut* HotkeyRegistry::GetHotkey(const QString& group, const QString& action
     if (!hk.shortcut)
         hk.shortcut = new QShortcut(hk.keyseq, widget, nullptr, nullptr, hk.context);
 
+    hk.shortcut->setAutoRepeat(false);
+
     return hk.shortcut;
 }