diff --git a/src/components/misc/keyboard-shortcuts.vue b/src/components/misc/keyboard-shortcuts.vue index 138d4a997..359ed6dfd 100644 --- a/src/components/misc/keyboard-shortcuts.vue +++ b/src/components/misc/keyboard-shortcuts.vue @@ -32,50 +32,30 @@

Assign this task to a user - ctrl - + - shift - + a

Add labels to this task - ctrl - + - shift - + l

Change the due date of this task - ctrl - + - shift - + d

Add an attachment to this task - ctrl - + - shift - + f

Modify related tasks of this task - ctrl - + - shift - + r

diff --git a/src/main.js b/src/main.js index 27f9e4025..41265928d 100644 --- a/src/main.js +++ b/src/main.js @@ -138,7 +138,7 @@ library.add(faStarSolid) Vue.component('icon', FontAwesomeIcon) -Vue.use(vueShortkey) +Vue.use(vueShortkey, { prevent: ['input', 'textarea', '.input'] }) import focus from '@/directives/focus' Vue.directive('focus', focus) diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index eac343a71..f0db72b25 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -271,7 +271,7 @@ @click="setFieldActive('assignees')" @shortkey="setFieldActive('assignees')" class="button" - v-shortkey="['ctrl', 'shift', 'a']"> + v-shortkey="['a']"> Assign this task to a user @@ -279,7 +279,7 @@ @click="setFieldActive('labels')" @shortkey="setFieldActive('labels')" class="button" - v-shortkey="['ctrl', 'shift', 'l']"> + v-shortkey="['l']"> Add labels @@ -291,7 +291,7 @@ @click="setFieldActive('dueDate')" @shortkey="setFieldActive('dueDate')" class="button" - v-shortkey="['ctrl', 'shift', 'd']"> + v-shortkey="['d']"> Set Due Date @@ -319,7 +319,7 @@ @click="setFieldActive('attachments')" @shortkey="setFieldActive('attachments')" class="button" - v-shortkey="['ctrl', 'shift', 'f']"> + v-shortkey="['f']"> Add attachments @@ -327,7 +327,7 @@ @click="setFieldActive('relatedTasks')" @shortkey="setFieldActive('relatedTasks')" class="button" - v-shortkey="['ctrl', 'shift', 'r']"> + v-shortkey="['r']"> Add task relations