You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
This commit is contained in:
@ -12,8 +12,11 @@ export const runtime = (comp: any): CommandRuntime => {
|
||||
if (comp.editorRef.current && comp.editorRef.current.supportsCommand('search')) {
|
||||
comp.editorRef.current.execCommand({ name: 'search' });
|
||||
} else {
|
||||
comp.setShowLocalSearch(true);
|
||||
if (comp.noteSearchBarRef.current) comp.noteSearchBarRef.current.wrappedInstance.focus();
|
||||
if (comp.noteSearchBarRef.current) {
|
||||
comp.noteSearchBarRef.current.focus();
|
||||
} else {
|
||||
comp.setShowLocalSearch(true);
|
||||
}
|
||||
}
|
||||
},
|
||||
enabledCondition: 'oneNoteSelected',
|
||||
|
Reference in New Issue
Block a user