@hailin-zheng/editor-core 2.0.23 → 2.0.25
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.
- package/index-cjs.js +9 -1
- package/index-cjs.js.map +1 -1
- package/index.js +9 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -18066,6 +18066,11 @@ class DocumentEvent {
|
|
18066
18066
|
}
|
18067
18067
|
}
|
18068
18068
|
onKeydown(evt) {
|
18069
|
+
const keyEvent = new KeyboradElementEvent(this.docCtx);
|
18070
|
+
keyEvent.sourceEvent = evt;
|
18071
|
+
if (DocumentEvent.invokeEvent('ElementKeyDown', this.docCtx.selectionState.startControl, keyEvent, 'All')) {
|
18072
|
+
return;
|
18073
|
+
}
|
18069
18074
|
// const copy = () => {
|
18070
18075
|
// const input = document.createElement('input');
|
18071
18076
|
// document.body.appendChild(input);
|
@@ -18291,6 +18296,9 @@ class DocumentInput {
|
|
18291
18296
|
if (DocumentEvent.invokeEvent('ElementKeyDown', this.docCtx.selectionState.startControl, keyEvent, 'All')) {
|
18292
18297
|
return;
|
18293
18298
|
}
|
18299
|
+
if (!this.docCtx.selectionState.editable) {
|
18300
|
+
return;
|
18301
|
+
}
|
18294
18302
|
if (evt.keyCode === 8) {
|
18295
18303
|
this.onBackspaceEvent.next(evt);
|
18296
18304
|
}
|
@@ -28069,7 +28077,7 @@ class DocEditor {
|
|
28069
28077
|
dataEle.setValue(values);
|
28070
28078
|
editor.setDataElemEndFocus(dataEle);
|
28071
28079
|
if (!multiSelect) {
|
28072
|
-
editor.selectionState.
|
28080
|
+
editor.selectionState.resetRange(dataEle.endDecorate, 1);
|
28073
28081
|
}
|
28074
28082
|
};
|
28075
28083
|
const itemsVNode = options.map(item => {
|