aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-02-26 16:47:17 +0000
committerStephen Blott2016-03-05 05:37:40 +0000
commit7c5fb2c312b9140c2dd091f792535ae8f592ecdb (patch)
tree7b9fca6597f6b58f430f633e53a5f4a6b0199fa7 /content_scripts/vimium_frontend.coffee
parent27d3d0087c86a6effd25049cbf0d9273eb0af9db (diff)
downloadvimium-7c5fb2c312b9140c2dd091f792535ae8f592ecdb.tar.bz2
Key bindings; initial "generic" class.
This implements a generic front-end class for key handling (a la normal mode). Also: - supports count prefixes (or not) - supports multi-key mappings (longer than two) Also included is a very poor-man's demo. See the bottom of mode_key_handler.coffee for some hard-wired key bindings. IMPORTANT: This does not actually work as Vimium. It's just a demo.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-rw-r--r--content_scripts/vimium_frontend.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 667031dc..bce5f632 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -112,7 +112,8 @@ window.initializeModes = ->
# Install the permanent modes. The permanently-installed insert mode tracks focus/blur events, and
# activates/deactivates itself accordingly.
- new NormalMode
+ # new NormalMode
+ new KeyHandlerMode commandHandler: demoCommandHandler, keyMapping: demoKeyMapping, indicator: "Demo mode."
new PassKeysMode
new InsertMode permanent: true
Scroller.init()