Make keyboard shortcuts single keys
This commit is contained in:
parent
b79d4ae3d7
commit
982d838dd4
3 changed files with 6 additions and 26 deletions
|
@ -32,50 +32,30 @@
|
|||
<p>
|
||||
<strong>Assign this task to a user</strong>
|
||||
<span class="shortcuts">
|
||||
<span>ctrl</span>
|
||||
<i>+</i>
|
||||
<span>shift</span>
|
||||
<i>+</i>
|
||||
<span>a</span>
|
||||
</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Add labels to this task</strong>
|
||||
<span class="shortcuts">
|
||||
<span>ctrl</span>
|
||||
<i>+</i>
|
||||
<span>shift</span>
|
||||
<i>+</i>
|
||||
<span>l</span>
|
||||
</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Change the due date of this task</strong>
|
||||
<span class="shortcuts">
|
||||
<span>ctrl</span>
|
||||
<i>+</i>
|
||||
<span>shift</span>
|
||||
<i>+</i>
|
||||
<span>d</span>
|
||||
</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Add an attachment to this task</strong>
|
||||
<span class="shortcuts">
|
||||
<span>ctrl</span>
|
||||
<i>+</i>
|
||||
<span>shift</span>
|
||||
<i>+</i>
|
||||
<span>f</span>
|
||||
</span>
|
||||
</p>
|
||||
<p>
|
||||
<strong>Modify related tasks of this task</strong>
|
||||
<span class="shortcuts">
|
||||
<span>ctrl</span>
|
||||
<i>+</i>
|
||||
<span>shift</span>
|
||||
<i>+</i>
|
||||
<span>r</span>
|
||||
</span>
|
||||
</p>
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -271,7 +271,7 @@
|
|||
@click="setFieldActive('assignees')"
|
||||
@shortkey="setFieldActive('assignees')"
|
||||
class="button"
|
||||
v-shortkey="['ctrl', 'shift', 'a']">
|
||||
v-shortkey="['a']">
|
||||
<span class="icon is-small"><icon icon="users"/></span>
|
||||
Assign this task to a user
|
||||
</a>
|
||||
|
@ -279,7 +279,7 @@
|
|||
@click="setFieldActive('labels')"
|
||||
@shortkey="setFieldActive('labels')"
|
||||
class="button"
|
||||
v-shortkey="['ctrl', 'shift', 'l']">
|
||||
v-shortkey="['l']">
|
||||
<span class="icon is-small"><icon icon="tags"/></span>
|
||||
Add labels
|
||||
</a>
|
||||
|
@ -291,7 +291,7 @@
|
|||
@click="setFieldActive('dueDate')"
|
||||
@shortkey="setFieldActive('dueDate')"
|
||||
class="button"
|
||||
v-shortkey="['ctrl', 'shift', 'd']">
|
||||
v-shortkey="['d']">
|
||||
<span class="icon is-small"><icon icon="calendar"/></span>
|
||||
Set Due Date
|
||||
</a>
|
||||
|
@ -319,7 +319,7 @@
|
|||
@click="setFieldActive('attachments')"
|
||||
@shortkey="setFieldActive('attachments')"
|
||||
class="button"
|
||||
v-shortkey="['ctrl', 'shift', 'f']">
|
||||
v-shortkey="['f']">
|
||||
<span class="icon is-small"><icon icon="paperclip"/></span>
|
||||
Add attachments
|
||||
</a>
|
||||
|
@ -327,7 +327,7 @@
|
|||
@click="setFieldActive('relatedTasks')"
|
||||
@shortkey="setFieldActive('relatedTasks')"
|
||||
class="button"
|
||||
v-shortkey="['ctrl', 'shift', 'r']">
|
||||
v-shortkey="['r']">
|
||||
<span class="icon is-small"><icon icon="tasks"/></span>
|
||||
Add task relations
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue