mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -1715,9 +1715,9 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => {
|
||||
if (matchHotKey(window.siyuan.config.keymap.general.stickSearch.custom, event)) {
|
||||
if (getSelection().rangeCount > 0) {
|
||||
const range = getSelection().getRangeAt(0);
|
||||
openGlobalSearch(app, range.toString(), false);
|
||||
openGlobalSearch(app, range.toString(), true);
|
||||
} else {
|
||||
openGlobalSearch(app, "", false);
|
||||
openGlobalSearch(app, "", true);
|
||||
}
|
||||
event.preventDefault();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user