1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00

Desktop: Fixes #4769: highlight existing text in global search field (#4773)

Co-authored-by: Siddhant Sehgal <ssehgal@makelearningbetter.co>
This commit is contained in:
Siddhant Sehgal 2021-04-06 23:43:43 +05:30 committed by GitHub
parent d8ed15873b
commit 17792d91a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ export const declaration: CommandDeclaration = {
export const runtime = (searchBarRef: any): CommandRuntime => {
return {
execute: async () => {
if (searchBarRef.current) searchBarRef.current.focus();
if (searchBarRef.current) searchBarRef.current.select();
},
};
};