Browse Source

:art: fix https://github.com/siyuan-note/siyuan/issues/10980

Vanessa 1 year ago
parent
commit
2edf0c4c1d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/src/boot/globalEvent/keydown.ts

+ 2 - 2
app/src/boot/globalEvent/keydown.ts

@@ -1715,9 +1715,9 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => {
     if (matchHotKey(window.siyuan.config.keymap.general.stickSearch.custom, event)) {
     if (matchHotKey(window.siyuan.config.keymap.general.stickSearch.custom, event)) {
         if (getSelection().rangeCount > 0) {
         if (getSelection().rangeCount > 0) {
             const range = getSelection().getRangeAt(0);
             const range = getSelection().getRangeAt(0);
-            openGlobalSearch(app, range.toString(), false);
+            openGlobalSearch(app, range.toString(), true);
         } else {
         } else {
-            openGlobalSearch(app, "", false);
+            openGlobalSearch(app, "", true);
         }
         }
         event.preventDefault();
         event.preventDefault();
         return;
         return;