add shortcut

This commit is contained in:
RickyRister 2025-06-12 23:41:04 -07:00
parent 9959bf2b5e
commit a35008cd78
2 changed files with 4 additions and 0 deletions

View file

@ -1290,6 +1290,7 @@ void MainWindow::refreshShortcuts()
aDisconnect->setShortcuts(shortcuts.getShortcut("MainWindow/aDisconnect")); aDisconnect->setShortcuts(shortcuts.getShortcut("MainWindow/aDisconnect"));
aSinglePlayer->setShortcuts(shortcuts.getShortcut("MainWindow/aSinglePlayer")); aSinglePlayer->setShortcuts(shortcuts.getShortcut("MainWindow/aSinglePlayer"));
aWatchReplay->setShortcuts(shortcuts.getShortcut("MainWindow/aWatchReplay")); aWatchReplay->setShortcuts(shortcuts.getShortcut("MainWindow/aWatchReplay"));
aStatusBar->setShortcuts(shortcuts.getShortcut("MainWindow/aStatusBar"));
aFullScreen->setShortcuts(shortcuts.getShortcut("MainWindow/aFullScreen")); aFullScreen->setShortcuts(shortcuts.getShortcut("MainWindow/aFullScreen"));
aRegister->setShortcuts(shortcuts.getShortcut("MainWindow/aRegister")); aRegister->setShortcuts(shortcuts.getShortcut("MainWindow/aRegister"));
aSettings->setShortcuts(shortcuts.getShortcut("MainWindow/aSettings")); aSettings->setShortcuts(shortcuts.getShortcut("MainWindow/aSettings"));

View file

@ -158,6 +158,9 @@ private:
ShortcutGroup::Main_Window)}, ShortcutGroup::Main_Window)},
{"MainWindow/aExit", {"MainWindow/aExit",
ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Exit"), parseSequenceString(""), ShortcutGroup::Main_Window)}, ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Exit"), parseSequenceString(""), ShortcutGroup::Main_Window)},
{"MainWindow/aStatusBar", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Show Status Bar"),
parseSequenceString(""),
ShortcutGroup::Main_Window)},
{"MainWindow/aFullScreen", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Full screen"), {"MainWindow/aFullScreen", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Full screen"),
parseSequenceString("Ctrl+F"), parseSequenceString("Ctrl+F"),
ShortcutGroup::Main_Window)}, ShortcutGroup::Main_Window)},