mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
hotkeys: Don't allow hotkeys to spam
This commit is contained in:
parent
852858c2cb
commit
311324e231
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue