Browse Source
Merge pull request #7355 from german77/hotkey_spam
hotkeys: Don't allow hotkeys to spam
pull/15/merge
bunnei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/yuzu/hotkeys.cpp
|
|
|
@ -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; |
|
|
|
} |
|
|
|
|
|
|
|
|