mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 17:44:21 +01:00
hotkeys: Don't allow hotkeys to spam
This commit is contained in:
parent
852858c2cb
commit
311324e231
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user