| () => { | () => { | ||||
| ref.current = setTimeout(() => { | ref.current = setTimeout(() => { | ||||
| editor.dispatchCommand(KEY_ESCAPE_COMMAND, new KeyboardEvent('keydown', { key: 'Escape' })) | editor.dispatchCommand(KEY_ESCAPE_COMMAND, new KeyboardEvent('keydown', { key: 'Escape' })) | ||||
| }, 100) | |||||
| }, 200) | |||||
| if (onBlur) | if (onBlur) | ||||
| onBlur() | onBlur() |