From 7df1cdfeeebfa6d991edf58e651f890727cd769e Mon Sep 17 00:00:00 2001 From: upsiflu Date: Mon, 24 Feb 2025 01:28:12 +0100 Subject: [PATCH] fix(front): disable keyboard shortcuts while contenteditable element is focused --- front/src/composables/onKeyboardShortcut.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/composables/onKeyboardShortcut.ts b/front/src/composables/onKeyboardShortcut.ts index b54d428d3..7b56c9159 100644 --- a/front/src/composables/onKeyboardShortcut.ts +++ b/front/src/composables/onKeyboardShortcut.ts @@ -20,7 +20,7 @@ useEventListener(window, 'keydown', (event) => { if (!event.key) return const target = event.target as HTMLElement - if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA') return + if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) return current.add(event.key.toLowerCase())