From 311324e231f00c6cff4bd86162c909d045146068 Mon Sep 17 00:00:00 2001 From: german77 Date: Wed, 17 Nov 2021 10:42:20 -0600 Subject: hotkeys: Don't allow hotkeys to spam --- src/yuzu/hotkeys.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3