diff options
| author | 2021-11-17 10:42:20 -0600 | |
|---|---|---|
| committer | 2021-11-17 10:42:20 -0600 | |
| commit | 311324e231f00c6cff4bd86162c909d045146068 (patch) | |
| tree | d8ab5b2e93b25b4c34a5aef4f4aa67c964cb8f5a /src | |
| parent | Merge pull request #7320 from OatmealDome/homebrew-capabilities (diff) | |
| download | yuzu-311324e231f00c6cff4bd86162c909d045146068.tar.gz yuzu-311324e231f00c6cff4bd86162c909d045146068.tar.xz yuzu-311324e231f00c6cff4bd86162c909d045146068.zip | |
hotkeys: Don't allow hotkeys to spam
Diffstat (limited to 'src')
| -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 | |||
| 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 | ||