From b9858e5e118d58620c0cd9ad46f602f602afb2c2 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Fri, 12 Feb 2021 09:57:10 +0100 Subject: [PATCH] Also select the input value when focussing search --- lib/ui/src/components/sidebar/Search.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ui/src/components/sidebar/Search.tsx b/lib/ui/src/components/sidebar/Search.tsx index 59afc32b2ced..83d1b46a2e4a 100644 --- a/lib/ui/src/components/sidebar/Search.tsx +++ b/lib/ui/src/components/sidebar/Search.tsx @@ -183,6 +183,7 @@ export const Search = React.memo<{ matchesKeyCode('Slash', event) ) { inputRef.current.focus(); + inputRef.current.select(); event.preventDefault(); } };