diff options
author | bunnei <bunneidev@gmail.com> | 2021-11-18 03:16:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 03:16:17 +0100 |
commit | 2054013edb03a6a65e7cad8fcf81bd6590416070 (patch) | |
tree | e0a218c9c0baacbc4ee6b448eae7fc9c83744399 | |
parent | Merge pull request #7219 from FernandoS27/aristotles-right-testicle (diff) | |
parent | hotkeys: Don't allow hotkeys to spam (diff) | |
download | yuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.tar yuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.tar.gz yuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.tar.bz2 yuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.tar.lz yuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.tar.xz yuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.tar.zst yuzu-2054013edb03a6a65e7cad8fcf81bd6590416070.zip |
-rw-r--r-- | src/yuzu/hotkeys.cpp | 2 |
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 if (!hk.shortcut) hk.shortcut = new QShortcut(hk.keyseq, widget, nullptr, nullptr, hk.context); + hk.shortcut->setAutoRepeat(false); + return hk.shortcut; } |