hotkeys: Don't allow hotkeys to spam

This commit is contained in:
german77 2021-11-17 10:42:20 -06:00
parent 5204d237ad
commit d46c9689ac

View file

@ -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;
}