From 378a04432fb0d7e64520740ca3b1bf4c7887db04 Mon Sep 17 00:00:00 2001 From: Alex Noble <6237394+Swinkid@users.noreply.github.com> Date: Sat, 18 May 2019 13:54:52 +0100 Subject: [PATCH] Keyboard shortcuts (#105) * Added basic shortcut support Added vue-shortkey library Added 'esc' shortcut to go back from add list component Added 'esc' shortcut to go back from game search component Added 'ctl+alt+d' to delete list from list settings component * Add shortcut to delete game from list (Delete Key) * Added shortcuts to delete game from list Added shortcuts to add note to game Added shortcuts to cancel from note creation Added shortcuts to delete note * Fixing import method for consistency * Fixed code review suggestions --- package.json | 1 + src/components/GameBoard/ListSettings.vue | 2 +- src/components/GameNotes/GameNotes.vue | 8 ++++++-- src/components/GameSearch/GameSearch.vue | 2 +- src/components/Lists/ListAdd.vue | 2 ++ src/main.js | 2 ++ src/pages/GameDetail.vue | 2 +- yarn.lock | 15 +++++++++++++++ 8 files changed, 29 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e0a7a8b8..c6e72cf0 100755 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "vue-markdown": "^2.2.4", "vue-raven": "^1.0.0", "vue-router": "^3.0.1", + "vue-shortkey": "^3.1.7", "vuedraggable": "^2.16.0", "vuefire": "^1.4.5", "vuex": "^3.0.1", diff --git a/src/components/GameBoard/ListSettings.vue b/src/components/GameBoard/ListSettings.vue index d30e9064..531423fc 100644 --- a/src/components/GameBoard/ListSettings.vue +++ b/src/components/GameBoard/ListSettings.vue @@ -58,7 +58,7 @@