aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-03 16:30:32 +0000
committerStephen Blott2015-01-03 16:34:58 +0000
commit762b17344a1d12aa58c5df2f3eef452175dc0166 (patch)
treea01683633bdbaa2826a0601264537f129a19af44 /content_scripts/vimium_frontend.coffee
parent21e4636c7898709e2cbece8cd85cc2ae4d2ce790 (diff)
downloadvimium-762b17344a1d12aa58c5df2f3eef452175dc0166.tar.bz2
Modes; visual-mode template.
Visual mode command has been create: bound to `v`, of course. The template is in mode_visual.coffee. It shouldn't really be necessary to make changes outside of there. Let me know if you have any issues.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-rw-r--r--content_scripts/vimium_frontend.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index e20dafc4..e0ce03d5 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -340,6 +340,9 @@ extend window,
enterInsertMode: ->
insertMode?.activate()
+ enterVisualMode: =>
+ new VisualMode()
+
focusInput: (count) ->
# Focus the first input element on the page, and create overlays to highlight all the input elements, with
# the currently-focused element highlighted specially. Tabbing will shift focus to the next input element.