mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-14 20:27:51 +00:00
allow volume up/down hotkeys to be repeated
This commit is contained in:
parent
67b76a2bd4
commit
66c71b5b5b
4 changed files with 32 additions and 27 deletions
|
@ -21,7 +21,8 @@ void HotkeyRegistry::SaveHotkeys() {
|
|||
{hotkey.first, group.first,
|
||||
UISettings::ContextualShortcut({hotkey.second.keyseq.toString(),
|
||||
hotkey.second.controller_keyseq,
|
||||
hotkey.second.context})});
|
||||
hotkey.second.context,
|
||||
hotkey.second.repeat})});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -47,6 +48,7 @@ void HotkeyRegistry::LoadHotkeys() {
|
|||
hk.controller_shortcut->disconnect();
|
||||
hk.controller_shortcut->SetKey(hk.controller_keyseq);
|
||||
}
|
||||
hk.repeat = shortcut.shortcut.repeat;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -57,8 +59,7 @@ QShortcut* HotkeyRegistry::GetHotkey(const QString& group, const QString& action
|
|||
hk.shortcut = new QShortcut(hk.keyseq, widget, nullptr, nullptr, hk.context);
|
||||
}
|
||||
|
||||
hk.shortcut->setAutoRepeat(false);
|
||||
|
||||
hk.shortcut->setAutoRepeat(hk.repeat);
|
||||
return hk.shortcut;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue