fix(front): disable keyboard shortcuts while contenteditable element is focused

This commit is contained in:
upsiflu 2025-02-24 01:28:12 +01:00
parent a1b837886d
commit 7df1cdfeee
1 changed files with 1 additions and 1 deletions

View File

@ -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())