mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 18:24:03 +02:00
Call keyDown handler while composing (#4923)
This commit is contained in:
@@ -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