🚸 (editor) Avoid editor closing when pressing Enter
This caused issue for people using IME (Virtual Keyboard)
This commit is contained in:
@@ -87,7 +87,7 @@ const TextBubbleEditorContent = ({
|
|||||||
|
|
||||||
const handleKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {
|
const handleKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {
|
||||||
if (e.shiftKey) return
|
if (e.shiftKey) return
|
||||||
if (e.key === 'Enter') closeEditor()
|
if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) closeEditor()
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user