diff --git a/src/components/misc/OpenQuickActions.vue b/src/components/misc/OpenQuickActions.vue index 1d305c94c..f8d4e82a2 100644 --- a/src/components/misc/OpenQuickActions.vue +++ b/src/components/misc/OpenQuickActions.vue @@ -5,13 +5,12 @@ import {onBeforeUnmount, onMounted} from 'vue' import {eventToHotkeyString} from '@github/hotkey' const baseStore = useBaseStore() -const GLOBAL_HOTKEY = 'Control+k' // See https://github.com/github/hotkey/discussions/85#discussioncomment-5214660 function openQuickActionsViaHotkey(event) { const hotkeyString = eventToHotkeyString(event) if (!hotkeyString) return - if (hotkeyString !== GLOBAL_HOTKEY) return + if (hotkeyString !== 'Control+k' && hotkeyString !== 'Meta+k') return event.preventDefault() openQuickActions() diff --git a/src/components/misc/keyboard-shortcuts/shortcuts.ts b/src/components/misc/keyboard-shortcuts/shortcuts.ts index 0ea93fc5b..e1550bafc 100644 --- a/src/components/misc/keyboard-shortcuts/shortcuts.ts +++ b/src/components/misc/keyboard-shortcuts/shortcuts.ts @@ -152,6 +152,10 @@ export const KEYBOARD_SHORTCUTS : ShortcutGroup[] = [ title: 'keyboardShortcuts.task.favorite', keys: ['s'], }, + { + title: 'keyboardShortcuts.task.save', + keys: [ctrl, 's'], + }, ], }, ] \ No newline at end of file diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index 02abfffe7..bf4e263d9 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -883,7 +883,8 @@ "description": "Toggle editing of the task description", "delete": "Delete this task", "priority": "Change the priority of this task", - "favorite": "Mark this task as favorite / unfavorite" + "favorite": "Mark this task as favorite / unfavorite", + "save": "Save the current task" }, "project": { "title": "Project Views", diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index f304989ae..71577580d 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -458,11 +458,12 @@