From a0d63272a6048a7fcc34a61ab84893f7bdc908a2 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 11 Nov 2020 22:02:57 +0100 Subject: [PATCH] Show all available shortcuts everywhere but indicate which work on the current page --- src/components/misc/keyboard-shortcuts.vue | 81 ++++++++++--------- src/styles/components/keyboard-shortcuts.scss | 4 + 2 files changed, 47 insertions(+), 38 deletions(-) diff --git a/src/components/misc/keyboard-shortcuts.vue b/src/components/misc/keyboard-shortcuts.vue index 359ed6dfd..05659dc91 100644 --- a/src/components/misc/keyboard-shortcuts.vue +++ b/src/components/misc/keyboard-shortcuts.vue @@ -7,10 +7,6 @@

Available Keyboard Shortcuts

-

- The available keyboard shortcuts depend on the current page. Not all shortcuts are available - everywhere. -

Toggle The Menu @@ -19,7 +15,13 @@ e

-

+

Kanban

+
+
+ These shortcuts work on the current page. +
+
+

Mark a task as done ctrl @@ -27,39 +29,42 @@ click

- +

Task Page

+
+
+ These shortcuts work on the current page. +
+
+

+ Assign this task to a user + + a + +

+

+ Add labels to this task + + l + +

+

+ Change the due date of this task + + d + +

+

+ Add an attachment to this task + + f + +

+

+ Modify related tasks of this task + + r + +

diff --git a/src/styles/components/keyboard-shortcuts.scss b/src/styles/components/keyboard-shortcuts.scss index 574e585ae..2fabb3a14 100644 --- a/src/styles/components/keyboard-shortcuts.scss +++ b/src/styles/components/keyboard-shortcuts.scss @@ -40,5 +40,9 @@ } } } + + .message-body { + padding: .5rem .75rem; + } } }