aboutsummaryrefslogtreecommitdiff
path: root/src/content/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/index.js')
-rw-r--r--src/content/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/index.js b/src/content/index.js
index 03efc5e..8cf0aed 100644
--- a/src/content/index.js
+++ b/src/content/index.js
@@ -1,12 +1,20 @@
import * as scrolls from './scrolls';
+import FooterLine from './footer-line';
import * as actions from '../shared/actions';
+var footer = null;
+
const invokeEvent = (action) => {
if (typeof action === 'undefined' || action === null) {
return;
}
switch (action[0]) {
+ case actions.CMD_OPEN:
+ footer = new FooterLine(document);
+ footer.input.value = ':';
+ footer.focus();
+ break;
case actions.SCROLL_UP:
scrolls.scrollUp(window, action[1] || 1);
break;