aboutsummaryrefslogtreecommitdiffstats
path: root/background_page.html
diff options
context:
space:
mode:
authorilya2009-10-28 23:38:24 -0700
committerilya2009-10-28 23:38:24 -0700
commitf758035242958bdabb2eb525edc0d3a8919b3bdf (patch)
tree18336dcd66883d0d40dcc308123ef65e72554166 /background_page.html
parent4d7e3f41fbdde0c240b9efeb3c4219ed5fdbbd3c (diff)
downloadvimium-f758035242958bdabb2eb525edc0d3a8919b3bdf.tar.bz2
Implement basic h,j,k,l navigation and remove the unnecessary registry in the content script.
Diffstat (limited to 'background_page.html')
-rw-r--r--background_page.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/background_page.html b/background_page.html
index d175c9b2..b31a911d 100644
--- a/background_page.html
+++ b/background_page.html
@@ -17,6 +17,10 @@
}
var keyToCommandRegistry = {};
+ keyToCommandRegistry['j'] = 'scrollDown';
+ keyToCommandRegistry['k'] = 'scrollUp';
+ keyToCommandRegistry['h'] = 'scrollLeft';
+ keyToCommandRegistry['l'] = 'scrollRight';
keyToCommandRegistry['gg'] = 'scrollToTop';
keyToCommandRegistry['G'] = 'scrollToBottom';
keyToCommandRegistry['t'] = createTab;