mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-28 10:44:12 +00:00
Ignore reserved keybindings when typing in text input (#2514)
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
This commit is contained in:
35
src/constants/reservedKeyCombos.ts
Normal file
35
src/constants/reservedKeyCombos.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
export const RESERVED_BY_TEXT_INPUT = new Set([
|
||||
'Ctrl + a',
|
||||
'Ctrl + c',
|
||||
'Ctrl + v',
|
||||
'Ctrl + x',
|
||||
'Ctrl + z',
|
||||
'Ctrl + y',
|
||||
'Ctrl + p',
|
||||
'Enter',
|
||||
'Shift + Enter',
|
||||
'Ctrl + Backspace',
|
||||
'Ctrl + Delete',
|
||||
'Home',
|
||||
'Ctrl + Home',
|
||||
'Ctrl + Shift + Home',
|
||||
'End',
|
||||
'Ctrl + End',
|
||||
'Ctrl + Shift + End',
|
||||
'PageUp',
|
||||
'PageDown',
|
||||
'Shift + PageUp',
|
||||
'Shift + PageDown',
|
||||
'ArrowLeft',
|
||||
'Ctrl + ArrowLeft',
|
||||
'Shift + ArrowLeft',
|
||||
'Ctrl + Shift + ArrowLeft',
|
||||
'ArrowRight',
|
||||
'Ctrl + ArrowRight',
|
||||
'Shift + ArrowRight',
|
||||
'Ctrl + Shift + ArrowRight',
|
||||
'ArrowUp',
|
||||
'Shift + ArrowUp',
|
||||
'ArrowDown',
|
||||
'Shift + ArrowDown'
|
||||
])
|
||||
Reference in New Issue
Block a user