a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

prevent keyboard handlers if inside input

+11
+11
components/Blocks/useBlockKeyboardHandlers.ts
··· 43 43 let command = { Tab, ArrowUp, ArrowDown, Backspace, Enter, Escape }[ 44 44 e.key 45 45 ]; 46 + 47 + let el = e.target as HTMLElement; 48 + if ( 49 + el.tagName === "LABEL" || 50 + el.tagName === "INPUT" || 51 + el.tagName === "TEXTAREA" || 52 + el.contentEditable === "true" 53 + ) { 54 + if ((el as HTMLInputElement).value !== "") return; 55 + } 56 + 46 57 command?.({ 47 58 e, 48 59 props,