citra-qt: Add /default parsing for hotkeys. Also minor code cleanups.
This commit is contained in:
parent
71f36efd27
commit
80ebd75285
12 changed files with 67 additions and 74 deletions
|
@ -30,7 +30,7 @@ void HotkeyRegistry::LoadHotkeys() {
|
|||
Hotkey& hk = hotkey_groups[shortcut.group][shortcut.name];
|
||||
if (!shortcut.shortcut.first.isEmpty()) {
|
||||
hk.keyseq = QKeySequence::fromString(shortcut.shortcut.first, QKeySequence::NativeText);
|
||||
hk.context = (Qt::ShortcutContext)shortcut.shortcut.second;
|
||||
hk.context = static_cast<Qt::ShortcutContext>(shortcut.shortcut.second);
|
||||
}
|
||||
if (hk.shortcut) {
|
||||
hk.shortcut->disconnect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue