From fb001f4c7e908618e5b2fbc3779ca0f668677f77 Mon Sep 17 00:00:00 2001
From: Shin'ya Ueoka <ueokande@i-beam.org>
Date: Wed, 14 Apr 2021 21:48:29 +0900
Subject: Hide console to focus main window after find executed

---
 src/console/components/FindPrompt.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/console/components/FindPrompt.tsx')

diff --git a/src/console/components/FindPrompt.tsx b/src/console/components/FindPrompt.tsx
index c437d16..552a09d 100644
--- a/src/console/components/FindPrompt.tsx
+++ b/src/console/components/FindPrompt.tsx
@@ -25,6 +25,7 @@ const FindPrompt: React.FC = () => {
 
     const value = (e.target as HTMLInputElement).value;
     execFind(value === "" ? undefined : value);
+    hide();
   };
 
   const onKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
-- 
cgit v1.2.3

