aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-04-15 13:20:17 +0000
committerGitHub <noreply@github.com>2021-04-15 13:20:17 +0000
commit7d6a3a544884165c8b9894eeaf83c5280cdcbb57 (patch)
tree33dc622e47cdc64992cab77e47b893261fb40e5c /src
parent6a554b4d4e9659331df633bc04eae31557572722 (diff)
parentfb001f4c7e908618e5b2fbc3779ca0f668677f77 (diff)
Merge pull request #1108 from ueokande/focus-after-error-message
Hide console to focus main window after find executed
Diffstat (limited to 'src')
-rw-r--r--src/console/components/FindPrompt.tsx1
1 files changed, 1 insertions, 0 deletions
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>) => {