aboutsummaryrefslogtreecommitdiff
path: root/src/console/components
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-19 20:31:16 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-19 20:31:16 +0900
commit71d35005b4b33e90a85dc50964cb96a8b462b748 (patch)
tree27308ee55c2b25a0609c8277909a6aff6b45021f /src/console/components
parent903c9c78b7965b3a046ad90af36e3cac676da452 (diff)
force console focus
Diffstat (limited to 'src/console/components')
-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 = '';
}