From 0ccbe5882cb1f15e84874a9f668be1edec717ff7 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Wed, 26 Feb 2025 14:51:55 +0530 Subject: [PATCH] chore: Improvement is keyboard shortcuts (#10925) --- .../widgets/WootWriter/ReplyBottomPanel.vue | 2 +- .../widgets/modal/WootKeyShortcutModal.vue | 111 ++++++------------ .../components/widgets/modal/constants.js | 101 ++++++++-------- .../dashboard/i18n/locale/en/settings.json | 5 - 4 files changed, 91 insertions(+), 128 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue b/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue index 5d516e111..9c04232e2 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/ReplyBottomPanel.vue @@ -127,7 +127,7 @@ export default { const uploadRef = ref(false); const keyboardEvents = { - 'Alt+KeyA': { + '$mod+Alt+KeyA': { action: () => { // TODO: This is really hacky, we need to replace the file picker component with // a custom one, where the logic and the component markup is isolated. diff --git a/app/javascript/dashboard/components/widgets/modal/WootKeyShortcutModal.vue b/app/javascript/dashboard/components/widgets/modal/WootKeyShortcutModal.vue index b982d96d0..04cd100ef 100644 --- a/app/javascript/dashboard/components/widgets/modal/WootKeyShortcutModal.vue +++ b/app/javascript/dashboard/components/widgets/modal/WootKeyShortcutModal.vue @@ -1,41 +1,34 @@