slate-angular 13.0.3 → 13.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3157,8 +3157,11 @@ class SlateEditableComponent {
|
|
|
3157
3157
|
}
|
|
3158
3158
|
onDOMKeydown(event) {
|
|
3159
3159
|
const editor = this.editor;
|
|
3160
|
+
const root = AngularEditor.findDocumentOrShadowRoot(this.editor);
|
|
3161
|
+
const { activeElement } = root;
|
|
3160
3162
|
if (!this.readonly &&
|
|
3161
3163
|
hasEditableTarget(editor, event.target) &&
|
|
3164
|
+
!isTargetInsideVoid(editor, activeElement) && // stop fire keydown handle when focus void node
|
|
3162
3165
|
!this.isComposing &&
|
|
3163
3166
|
!this.isDOMEventHandled(event, this.keydown)) {
|
|
3164
3167
|
const nativeEvent = event;
|