aboutsummaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-19 21:46:51 +0900
committerGitHub <noreply@github.com>2017-10-19 21:46:51 +0900
commitc47a2075bcada9dbb1ab1076a92238d6ce48d347 (patch)
tree27308ee55c2b25a0609c8277909a6aff6b45021f /src/console
parent86431e82f75af48f1a8b98c95257714ff75261fc (diff)
parent71d35005b4b33e90a85dc50964cb96a8b462b748 (diff)
Merge pull request #84 from ueokande/14-lose-console-focus
Fix close focus
Diffstat (limited to 'src/console')
-rw-r--r--src/console/components/console.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/console/components/console.js b/src/console/components/console.js
index 82ec467..dcd4041 100644
--- a/src/console/components/console.js
+++ b/src/console/components/console.js
@@ -107,6 +107,8 @@ export default class ConsoleComponent {
command.style.display = 'block';
input.value = text;
input.focus();
+
+ window.focus();
this.prevValue = '';
}