hotkeys: Don't allow hotkeys to spam

pull/8/head
german77 3 years ago
parent 852858c2cb
commit 311324e231

@ -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…
Cancel
Save