From 7f6f8963e7db236f3beb9e6a36fab4ba479b969b Mon Sep 17 00:00:00 2001 From: konrad Date: Wed, 7 Sep 2022 17:55:59 +0000 Subject: [PATCH] feat: add keyboard shortcut to toggle task description edit (#2332) Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2332 Reviewed-by: Dominik Pschenitschni --- src/components/input/editor.vue | 33 ++++++++++++++++--- .../misc/keyboard-shortcuts/shortcuts.ts | 4 +++ src/components/tasks/partials/description.vue | 1 + src/directives/shortcut.ts | 3 ++ src/i18n/lang/en.json | 3 +- 5 files changed, 39 insertions(+), 5 deletions(-) diff --git a/src/components/input/editor.vue b/src/components/input/editor.vue index ab4383fa..e2ec5d66 100644 --- a/src/components/input/editor.vue +++ b/src/components/input/editor.vue @@ -16,14 +16,29 @@

{{ emptyText }}

  • - {{ $t('input.editor.edit') }} - {{ $t('misc.save') }} + + {{ $t('input.editor.edit') }} + + + {{ $t('misc.save') }} +
  • {{ action.title }} @@ -32,7 +47,11 @@