mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 01:06:37 +02:00
Call keyDown handler while composing (#4923)
This commit is contained in:
5
.changeset/big-keys-grab.md
Normal file
5
.changeset/big-keys-grab.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'slate-react': patch
|
||||
---
|
||||
|
||||
Call keyDown handler while composing
|
@@ -1064,9 +1064,9 @@ export const Editable = (props: EditableProps) => {
|
||||
(event: React.KeyboardEvent<HTMLDivElement>) => {
|
||||
if (
|
||||
!readOnly &&
|
||||
!state.isComposing &&
|
||||
hasEditableTarget(editor, event.target) &&
|
||||
!isEventHandled(event, attributes.onKeyDown)
|
||||
!isEventHandled(event, attributes.onKeyDown) &&
|
||||
!state.isComposing
|
||||
) {
|
||||
const { nativeEvent } = event
|
||||
const { selection } = editor
|
||||
|
Reference in New Issue
Block a user