diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-03 17:48:46 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-03 17:48:46 +0900 |
commit | 8cabd68b927fe7022efa11dee082aafe8c2d4f30 (patch) | |
tree | 3cdcc1f557d148cd70a16b767e88b19220761e51 /src/console/console.js | |
parent | 044f24efb64ec52dfdb02e0e0807bc4545c4a21c (diff) | |
parent | 29f82d3a7f339fa99759b589923f0d8657da28f5 (diff) |
Merge branch 'buffer'
Diffstat (limited to 'src/console/console.js')
-rw-r--r-- | src/console/console.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/console/console.js b/src/console/console.js index a171ecc..e0227aa 100644 --- a/src/console/console.js +++ b/src/console/console.js @@ -8,20 +8,20 @@ var prevValue = ""; const blurMessage = () => { return { - type: 'vimvixen.commandline.blur' + type: 'vimvixen.command.blur' }; }; const keydownMessage = (input) => { return { - type: 'vimvixen.commandline.enter', + type: 'vimvixen.command.enter', value: input.value }; }; const keyupMessage = (input) => { return { - type: 'vimvixen.commandline.change', + type: 'vimvixen.command.change', value: input.value }; }; @@ -57,15 +57,15 @@ window.addEventListener('load', () => { }); const showCommand = (text) => { - let input = window.document.querySelector('#vimvixen-console-command-input'); - input.value = text; - input.focus(); - let command = window.document.querySelector('#vimvixen-console-command'); command.style.display = 'block'; let error = window.document.querySelector('#vimvixen-console-error'); error.style.display = 'none'; + + let input = window.document.querySelector('#vimvixen-console-command-input'); + input.value = text; + input.focus(); } const showError = (text) => { |