diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-19 20:31:16 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-19 20:31:16 +0900 |
commit | 71d35005b4b33e90a85dc50964cb96a8b462b748 (patch) | |
tree | 27308ee55c2b25a0609c8277909a6aff6b45021f /src/console/components | |
parent | 903c9c78b7965b3a046ad90af36e3cac676da452 (diff) |
force console focus
Diffstat (limited to 'src/console/components')
-rw-r--r-- | src/console/components/console.js | 2 |
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 = ''; } |