Show all available shortcuts everywhere but indicate which work on the current page
This commit is contained in:
parent
982d838dd4
commit
a0d63272a6
2 changed files with 47 additions and 38 deletions
|
@ -7,10 +7,6 @@
|
||||||
<p class="card-header-title">Available Keyboard Shortcuts</p>
|
<p class="card-header-title">Available Keyboard Shortcuts</p>
|
||||||
</header>
|
</header>
|
||||||
<div class="card-content content">
|
<div class="card-content content">
|
||||||
<p class="info">
|
|
||||||
The available keyboard shortcuts depend on the current page. Not all shortcuts are available
|
|
||||||
everywhere.
|
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
<strong>Toggle The Menu</strong>
|
<strong>Toggle The Menu</strong>
|
||||||
<span class="shortcuts">
|
<span class="shortcuts">
|
||||||
|
@ -19,7 +15,13 @@
|
||||||
<span>e</span>
|
<span>e</span>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p v-if="$route.name === 'list.kanban'">
|
<h3>Kanban</h3>
|
||||||
|
<div class="message is-primary" v-if="$route.name === 'list.kanban'">
|
||||||
|
<div class="message-body">
|
||||||
|
These shortcuts work on the current page.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
<strong>Mark a task as done</strong>
|
<strong>Mark a task as done</strong>
|
||||||
<span class="shortcuts">
|
<span class="shortcuts">
|
||||||
<span>ctrl</span>
|
<span>ctrl</span>
|
||||||
|
@ -27,39 +29,42 @@
|
||||||
<span>click</span>
|
<span>click</span>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<template
|
<h3>Task Page</h3>
|
||||||
v-if="$route.name === 'task.detail' || $route.name === 'task.list.detail' || $route.name === 'task.gantt.detail' || $route.name === 'task.kanban.detail' || $route.name === 'task.detail'">
|
<div class="message is-primary" v-if="$route.name === 'task.detail' || $route.name === 'task.list.detail' || $route.name === 'task.gantt.detail' || $route.name === 'task.kanban.detail' || $route.name === 'task.detail'">
|
||||||
<p>
|
<div class="message-body">
|
||||||
<strong>Assign this task to a user</strong>
|
These shortcuts work on the current page.
|
||||||
<span class="shortcuts">
|
</div>
|
||||||
<span>a</span>
|
</div>
|
||||||
</span>
|
<p>
|
||||||
</p>
|
<strong>Assign this task to a user</strong>
|
||||||
<p>
|
<span class="shortcuts">
|
||||||
<strong>Add labels to this task</strong>
|
<span>a</span>
|
||||||
<span class="shortcuts">
|
</span>
|
||||||
<span>l</span>
|
</p>
|
||||||
</span>
|
<p>
|
||||||
</p>
|
<strong>Add labels to this task</strong>
|
||||||
<p>
|
<span class="shortcuts">
|
||||||
<strong>Change the due date of this task</strong>
|
<span>l</span>
|
||||||
<span class="shortcuts">
|
</span>
|
||||||
<span>d</span>
|
</p>
|
||||||
</span>
|
<p>
|
||||||
</p>
|
<strong>Change the due date of this task</strong>
|
||||||
<p>
|
<span class="shortcuts">
|
||||||
<strong>Add an attachment to this task</strong>
|
<span>d</span>
|
||||||
<span class="shortcuts">
|
</span>
|
||||||
<span>f</span>
|
</p>
|
||||||
</span>
|
<p>
|
||||||
</p>
|
<strong>Add an attachment to this task</strong>
|
||||||
<p>
|
<span class="shortcuts">
|
||||||
<strong>Modify related tasks of this task</strong>
|
<span>f</span>
|
||||||
<span class="shortcuts">
|
</span>
|
||||||
<span>r</span>
|
</p>
|
||||||
</span>
|
<p>
|
||||||
</p>
|
<strong>Modify related tasks of this task</strong>
|
||||||
</template>
|
<span class="shortcuts">
|
||||||
|
<span>r</span>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -40,5 +40,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.message-body {
|
||||||
|
padding: .5rem .75rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue