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

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)
     if (!hk.shortcut)
         hk.shortcut = new QShortcut(hk.keyseq, widget, nullptr, nullptr, hk.context);
         hk.shortcut = new QShortcut(hk.keyseq, widget, nullptr, nullptr, hk.context);
 
 
+    hk.shortcut->setAutoRepeat(false);
+
     return hk.shortcut;
     return hk.shortcut;
 }
 }