diff --git a/src/components/misc/keyboard-shortcuts/shortcuts.ts b/src/components/misc/keyboard-shortcuts/shortcuts.ts index 538f1db7f..4b19e5bfb 100644 --- a/src/components/misc/keyboard-shortcuts/shortcuts.ts +++ b/src/components/misc/keyboard-shortcuts/shortcuts.ts @@ -140,6 +140,18 @@ export const KEYBOARD_SHORTCUTS : ShortcutGroup[] = [ title: 'keyboardShortcuts.task.description', keys: ['e'], }, + { + title: 'keyboardShortcuts.task.priority', + keys: ['p'], + }, + { + title: 'keyboardShortcuts.task.delete', + keys: ['shift', 'delete'], + }, + { + title: 'keyboardShortcuts.task.favorite', + keys: ['s'], + }, ], }, -] +] \ No newline at end of file diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index ed84f6332..68d4a6c5e 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -897,7 +897,10 @@ "color": "Change the color of this task", "move": "Move this task to another project", "reminder": "Manage reminders of this task", - "description": "Toggle editing of the task description" + "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" }, "project": { "title": "Project Views", @@ -1056,4 +1059,4 @@ "frontendVersion": "Frontend Version: {version}", "apiVersion": "API Version: {version}" } -} +} \ No newline at end of file diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index 65dd072c1..9e77ce252 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -322,6 +322,7 @@ @click="setFieldActive('priority')" variant="secondary" icon="exclamation" + v-shortcut="'p'" > {{ $t('task.detail.actions.priority') }} @@ -406,6 +407,7 @@ @click="toggleFavorite" variant="secondary" :icon="task.isFavorite ? 'star' : ['far', 'star']" + v-shortcut="'s'" > {{ task.isFavorite ? $t('task.detail.actions.unfavorite') : $t('task.detail.actions.favorite') @@ -416,6 +418,7 @@ icon="trash-alt" :shadow="false" class="is-danger is-outlined has-no-border" + v-shortcut="'Shift+Delete'" > {{ $t('task.detail.actions.delete') }}