From be093e37790d1249f3ebb6a785c12255728d7c10 Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 25 Jul 2020 14:52:04 +0000 Subject: [PATCH] Keyboard Shortcuts (#193) Add the keyboard shortcuts button Add task keyboard shortcuts Add info Move keyboard shortcuts modal toggle to menu Add modal for shortcuts Add shortkeys for some task actions Add shortkey to toggle menu Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/193 --- package.json | 1 + src/App.vue | 17 +++- src/components/misc/keyboard-shortcuts.vue | 99 +++++++++++++++++++ src/main.js | 6 ++ src/styles/components/_all.scss | 1 + src/styles/components/keyboard-shortcuts.scss | 44 +++++++++ src/styles/theme/theme.scss | 4 + src/views/tasks/TaskDetailView.vue | 10 +- yarn.lock | 18 ++++ 9 files changed, 194 insertions(+), 6 deletions(-) create mode 100644 src/components/misc/keyboard-shortcuts.vue create mode 100644 src/styles/components/keyboard-shortcuts.scss diff --git a/package.json b/package.json index 45ace31a5..14763d44f 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "vue": "2.6.11", "vue-drag-resize": "1.4.1", "vue-easymde": "1.2.2", + "vue-shortkey": "^3.1.7", "vue-smooth-dnd": "0.8.1", "vuex": "3.5.1" }, diff --git a/src/App.vue b/src/App.vue index b36dc6e26..7b1a96149 100644 --- a/src/App.vue +++ b/src/App.vue @@ -62,6 +62,7 @@ Imprint Privacy policy + Keyboard Shortcuts Logout @@ -137,7 +138,11 @@ - Collapse Menu + + + Collapse Menu + +