mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-31 07:57:08 +02:00
hotkeys: Don't allow hotkeys to spam
This commit is contained in:
parent
5204d237ad
commit
d46c9689ac
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)
|
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…
Add table
Add a link
Reference in a new issue