@worktile/theia 14.2.26 → 14.2.27

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.
@@ -10297,15 +10297,14 @@ class ThePluginMenuComponent extends mixinUnsubscribe(MixinBase) {
10297
10297
  this.tableSelectPopoverConfig = {
10298
10298
  panelClass: 'plugin-menu-table-select-container',
10299
10299
  minWidth: 0,
10300
- //避免重写
10300
+ // 避免重写
10301
10301
  originActiveClass: 'thy-popover-origin-active'
10302
10302
  };
10303
10303
  this.containerClassName = `the-plugin-menu-container`;
10304
10304
  this.theDisplaySearch = false;
10305
10305
  this.removeKeywords = () => {
10306
- const hotkey = getPluginOptions(this.editor, PluginKeys.quickInsert)?.hotkey;
10307
10306
  const node = Node.get(this.editor, this.editor.selection.anchor.path);
10308
- if (node && node.text?.includes(hotkey)) {
10307
+ if (node && Node.string(node).length > 0) {
10309
10308
  Editor.deleteBackward(this.editor, { unit: 'block' });
10310
10309
  }
10311
10310
  };
@@ -10386,7 +10385,9 @@ class ThePluginMenuComponent extends mixinUnsubscribe(MixinBase) {
10386
10385
  if (!this.editor.selection) {
10387
10386
  refocus(this.editor);
10388
10387
  }
10389
- this.removeKeywords();
10388
+ if (!this.theDisplaySearch) {
10389
+ this.removeKeywords();
10390
+ }
10390
10391
  menuItem.execute(this.editor);
10391
10392
  this.thyPopoverRef.close();
10392
10393
  QuickInsertEditor.updatePluginMenuRef(this.editor, null);