Browse Source

:bug: fix https://github.com/siyuan-note/siyuan/issues/5714

Vanessa 2 years ago
parent
commit
69460273e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/util/globalShortcut.ts

+ 1 - 1
app/src/util/globalShortcut.ts

@@ -589,7 +589,7 @@ export const globalShortcut = () => {
             getAllTabs().find(item => {
             getAllTabs().find(item => {
                 if (item.headElement?.classList.contains("item--focus")) {
                 if (item.headElement?.classList.contains("item--focus")) {
                     item.parent.removeTab(item.id);
                     item.parent.removeTab(item.id);
-                    return;
+                    return true;
                 }
                 }
             });
             });
             return;
             return;