diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-04-15 13:20:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 13:20:17 +0000 |
commit | 7d6a3a544884165c8b9894eeaf83c5280cdcbb57 (patch) | |
tree | 33dc622e47cdc64992cab77e47b893261fb40e5c | |
parent | 6a554b4d4e9659331df633bc04eae31557572722 (diff) | |
parent | fb001f4c7e908618e5b2fbc3779ca0f668677f77 (diff) |
Merge pull request #1108 from ueokande/focus-after-error-message
Hide console to focus main window after find executed
-rw-r--r-- | src/console/components/FindPrompt.tsx | 1 |
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>) => { |