From 484e8e64a66a71e5906e5bf9c8d45e85a47e1325 Mon Sep 17 00:00:00 2001 From: RickyRister <42636155+RickyRister@users.noreply.github.com> Date: Sun, 9 Nov 2025 01:16:30 -0800 Subject: [PATCH] Create "Hand" shortcut group (#6296) * Add new Hand ShortcutGroup * Move hand shortcuts --- .../src/client/settings/shortcuts_settings.h | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/cockatrice/src/client/settings/shortcuts_settings.h b/cockatrice/src/client/settings/shortcuts_settings.h index f3b7a53e6..a1bdfd870 100644 --- a/cockatrice/src/client/settings/shortcuts_settings.h +++ b/cockatrice/src/client/settings/shortcuts_settings.h @@ -33,6 +33,7 @@ public: Move_bottom, Gameplay, Drawing, + Hand, Chat_room, Game_window, Load_deck, @@ -71,6 +72,8 @@ public: return QApplication::translate("shortcutsTab", "Gameplay"); case Drawing: return QApplication::translate("shortcutsTab", "Drawing"); + case Hand: + return QApplication::translate("shortcutsTab", "Hand"); case Chat_room: return QApplication::translate("shortcutsTab", "Chat Room"); case Game_window: @@ -562,15 +565,6 @@ private: ShortcutGroup::Move_selected)}, {"Player/aViewHand", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Hand"), parseSequenceString(""), ShortcutGroup::View)}, - {"Player/aSortHandByName", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Name"), - parseSequenceString(""), - ShortcutGroup::View)}, - {"Player/aSortHandByType", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Type"), - parseSequenceString("Ctrl+Shift+H"), - ShortcutGroup::View)}, - {"Player/aSortHandByManaValue", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Mana Value"), - parseSequenceString(""), - ShortcutGroup::View)}, {"Player/aViewGraveyard", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Graveyard"), parseSequenceString("F4"), ShortcutGroup::View)}, {"Player/aViewLibrary", @@ -678,6 +672,15 @@ private: {"Player/aAlwaysLookAtTopCard", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Always Look At Top Card"), parseSequenceString("Ctrl+Shift+N"), ShortcutGroup::Drawing)}, + {"Player/aSortHandByName", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Name"), + parseSequenceString(""), + ShortcutGroup::Hand)}, + {"Player/aSortHandByType", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Type"), + parseSequenceString("Ctrl+Shift+H"), + ShortcutGroup::Hand)}, + {"Player/aSortHandByManaValue", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Sort Hand by Mana Value"), + parseSequenceString(""), + ShortcutGroup::Hand)}, {"Player/aRotateViewCW", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Rotate View Clockwise"), parseSequenceString(""), ShortcutGroup::Gameplay)},