@hailin-zheng/editor-core 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- 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.js
CHANGED
@@ -16667,11 +16667,6 @@ class DocumentInput {
|
|
16667
16667
|
if (evt.defaultPrevented) {
|
16668
16668
|
return;
|
16669
16669
|
}
|
16670
|
-
const keyEvent = new KeyboradElementEvent(this.docCtx);
|
16671
|
-
keyEvent.sourceEvent = evt;
|
16672
|
-
if (DocumentEvent.invokeEvent('ElementKeyDown', this.docCtx.selectionState.startControl, keyEvent, 'All')) {
|
16673
|
-
return;
|
16674
|
-
}
|
16675
16670
|
// if (!this.docCtx.selectionState.editable) {
|
16676
16671
|
// return;
|
16677
16672
|
// }
|
@@ -21896,7 +21891,7 @@ class DocEditor {
|
|
21896
21891
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
21897
21892
|
}
|
21898
21893
|
version() {
|
21899
|
-
return "2.2.
|
21894
|
+
return "2.2.5";
|
21900
21895
|
}
|
21901
21896
|
switchPageHeaderEditor() {
|
21902
21897
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|
@@ -22063,6 +22058,12 @@ class DocEditor {
|
|
22063
22058
|
}
|
22064
22059
|
}
|
22065
22060
|
processKeyDownEvent(evt) {
|
22061
|
+
const keyEvent = new KeyboradElementEvent(this.docCtx);
|
22062
|
+
keyEvent.sourceEvent = evt;
|
22063
|
+
if (DocumentEvent.invokeEvent('ElementKeyDown', this.docCtx.selectionState.startControl, keyEvent, 'All')) {
|
22064
|
+
evt.preventDefault();
|
22065
|
+
return;
|
22066
|
+
}
|
22066
22067
|
if (evt.keyCode === 38 || evt.keyCode === 40) {
|
22067
22068
|
if (this.docCtx.suggestions.prepareSuggestions.length) {
|
22068
22069
|
this.onSuggestionsKeydown(evt);
|