@hailin-zheng/editor-core 2.2.4 → 2.2.5
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 +7 -6
- package/index-cjs.js.map +1 -1
- package/index.js +7 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
|
@@ -16696,11 +16696,6 @@ class DocumentInput {
|
|
|
16696
16696
|
if (evt.defaultPrevented) {
|
|
16697
16697
|
return;
|
|
16698
16698
|
}
|
|
16699
|
-
const keyEvent = new KeyboradElementEvent(this.docCtx);
|
|
16700
|
-
keyEvent.sourceEvent = evt;
|
|
16701
|
-
if (DocumentEvent.invokeEvent('ElementKeyDown', this.docCtx.selectionState.startControl, keyEvent, 'All')) {
|
|
16702
|
-
return;
|
|
16703
|
-
}
|
|
16704
16699
|
// if (!this.docCtx.selectionState.editable) {
|
|
16705
16700
|
// return;
|
|
16706
16701
|
// }
|
|
@@ -21925,7 +21920,7 @@ class DocEditor {
|
|
|
21925
21920
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
|
21926
21921
|
}
|
|
21927
21922
|
version() {
|
|
21928
|
-
return "2.2.
|
|
21923
|
+
return "2.2.5";
|
|
21929
21924
|
}
|
|
21930
21925
|
switchPageHeaderEditor() {
|
|
21931
21926
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|
|
@@ -22092,6 +22087,12 @@ class DocEditor {
|
|
|
22092
22087
|
}
|
|
22093
22088
|
}
|
|
22094
22089
|
processKeyDownEvent(evt) {
|
|
22090
|
+
const keyEvent = new KeyboradElementEvent(this.docCtx);
|
|
22091
|
+
keyEvent.sourceEvent = evt;
|
|
22092
|
+
if (DocumentEvent.invokeEvent('ElementKeyDown', this.docCtx.selectionState.startControl, keyEvent, 'All')) {
|
|
22093
|
+
evt.preventDefault();
|
|
22094
|
+
return;
|
|
22095
|
+
}
|
|
22095
22096
|
if (evt.keyCode === 38 || evt.keyCode === 40) {
|
|
22096
22097
|
if (this.docCtx.suggestions.prepareSuggestions.length) {
|
|
22097
22098
|
this.onSuggestionsKeydown(evt);
|