summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2021-11-17 18:16:17 -0800
committerGravatar GitHub2021-11-17 18:16:17 -0800
commit2054013edb03a6a65e7cad8fcf81bd6590416070 (patch)
treee0a218c9c0baacbc4ee6b448eae7fc9c83744399 /src
parentMerge pull request #7219 from FernandoS27/aristotles-right-testicle (diff)
parenthotkeys: Don't allow hotkeys to spam (diff)
downloadyuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.tar.gz
yuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.tar.xz
yuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.zip
Merge pull request #7355 from german77/hotkey_spam
hotkeys: Don't allow hotkeys to spam
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/hotkeys.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/hotkeys.cpp b/src/yuzu/hotkeys.cpp
index d4e97fa16..e7e58f314 100644
--- a/src/yuzu/hotkeys.cpp
+++ b/src/yuzu/hotkeys.cpp
@@ -46,6 +46,8 @@ QShortcut* HotkeyRegistry::GetHotkey(const QString& group, const QString& action
46 if (!hk.shortcut) 46 if (!hk.shortcut)
47 hk.shortcut = new QShortcut(hk.keyseq, widget, nullptr, nullptr, hk.context); 47 hk.shortcut = new QShortcut(hk.keyseq, widget, nullptr, nullptr, hk.context);
48 48
49 hk.shortcut->setAutoRepeat(false);
50
49 return hk.shortcut; 51 return hk.shortcut;
50} 52}
51 53