Ignore reserved keybindings when typing in text input (#2514)

Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
This commit is contained in:
bymyself
2025-02-12 09:15:19 -07:00
committed by GitHub
parent 150b4341b2
commit 46f0733ae7
4 changed files with 71 additions and 2 deletions

View File

@@ -18,10 +18,10 @@ export const useKeybindingService = () => {
return
}
// Ignore non-modifier keybindings if typing in input fields
// Ignore reserved or non-modifier keybindings if typing in input fields
const target = event.composedPath()[0] as HTMLElement
if (
!keyCombo.hasModifier &&
keyCombo.isReservedByTextInput &&
(target.tagName === 'TEXTAREA' ||
target.tagName === 'INPUT' ||
(target.tagName === 'SPAN' &&