fix: Enter/Esc keys in content editable should not be considered while composing

closes #5523
This commit is contained in:
Tom Moor
2023-07-04 08:31:22 -04:00
parent cce22bcdee
commit b54a370e01

View File

@@ -64,6 +64,9 @@ const EditableTitle = React.forwardRef(
const handleKeyDown = React.useCallback(
(event: React.KeyboardEvent) => {
if (event.nativeEvent.isComposing) {
return;
}
if (event.key === "Enter") {
event.preventDefault();