aboutsummaryrefslogtreecommitdiff
path: root/src/console/console.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-03 17:48:46 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-03 17:48:46 +0900
commit8cabd68b927fe7022efa11dee082aafe8c2d4f30 (patch)
tree3cdcc1f557d148cd70a16b767e88b19220761e51 /src/console/console.js
parent044f24efb64ec52dfdb02e0e0807bc4545c4a21c (diff)
parent29f82d3a7f339fa99759b589923f0d8657da28f5 (diff)
Merge branch 'buffer'
Diffstat (limited to 'src/console/console.js')
-rw-r--r--src/console/console.js14
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) => {