aboutsummaryrefslogtreecommitdiff
path: root/src/console/console.js
diff options
context:
space:
mode:
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) => {