From c16a2cf3626c2affc779f84537e896363b79b799 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 27 Nov 2025 17:06:52 +0100 Subject: [PATCH] feat: refactor existing shortcuts to use shortcut manager (Phase 2) - Update v-shortcut directive to support both old format (keys) and new format (actionIds) - Refactor general shortcuts: MenuButton (Ctrl+E), OpenQuickActions (Ctrl+K), ContentAuth (Shift+?) - Refactor navigation shortcuts: all g+key sequences in Navigation.vue now use actionIds - Refactor task detail shortcuts: all 14 task shortcuts + Ctrl+S now use shortcut manager - Update help modal to show effective shortcuts and link to settings page - Add showHelp shortcut action for Shift+? keyboard shortcut help All existing shortcuts now use the shortcut manager system and will respect user customizations. The help modal displays current effective shortcuts (default or customized) and provides a direct link to the keyboard shortcuts settings page for easy customization. --- frontend/src/components/home/ContentAuth.vue | 2 +- frontend/src/components/home/MenuButton.vue | 2 +- frontend/src/components/home/Navigation.vue | 10 ++-- .../src/components/misc/OpenQuickActions.vue | 10 ++-- .../misc/keyboard-shortcuts/index.vue | 50 ++++++++++++++++++- .../misc/keyboard-shortcuts/shortcuts.ts | 8 +++ frontend/src/directives/shortcut.ts | 34 ++++++++++++- frontend/src/i18n/lang/en.json | 1 + frontend/src/views/tasks/TaskDetailView.vue | 40 ++++++++------- 9 files changed, 125 insertions(+), 32 deletions(-) diff --git a/frontend/src/components/home/ContentAuth.vue b/frontend/src/components/home/ContentAuth.vue index a77749b65..77f8315bf 100644 --- a/frontend/src/components/home/ContentAuth.vue +++ b/frontend/src/components/home/ContentAuth.vue @@ -55,7 +55,7 @@ diff --git a/frontend/src/components/home/MenuButton.vue b/frontend/src/components/home/MenuButton.vue index 1ab8dab83..956e959f4 100644 --- a/frontend/src/components/home/MenuButton.vue +++ b/frontend/src/components/home/MenuButton.vue @@ -1,6 +1,6 @@ + +

+ {{ $t('keyboardShortcuts.helpText') }} +