diff options
| author | Stephen Blott | 2015-01-07 19:00:24 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-07 19:00:24 +0000 |
| commit | 8cbe2df33d8af3845801bfaacf3b58adab9916cb (patch) | |
| tree | 0f440c072a35e9fb2ade4cf272c6b408227d5cd4 | |
| parent | 0429da577097bd7d30d12901fcc74385e44d83f4 (diff) | |
| download | vimium-8cbe2df33d8af3845801bfaacf3b58adab9916cb.tar.bz2 | |
Modes; minor changes.
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index f0196c74..3f36a5cd 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -371,10 +371,9 @@ extend window, hint - hints[selectedInputIndex].classList.add 'internalVimiumSelectedInputHint' - - hintContainingDiv = DomUtils.addElementList(hints, - { id: "vimiumInputMarkerContainer", className: "vimiumReset" }) + hintContainingDiv = DomUtils.addElementList hints, + id: "vimiumInputMarkerContainer" + className: "vimiumReset" new class FocusSelector extends InsertModeBlocker constructor: -> @@ -394,11 +393,8 @@ extend window, @exit() @continueBubbling - # TODO. InsertModeBlocker is no longer a singleton. Need to make this a singleton. Fix once class - # hierarchy is removed. - - visibleInputs[selectedInputIndex].element.focus() @exit() if visibleInputs.length == 1 + hints[selectedInputIndex].classList.add 'internalVimiumSelectedInputHint' exit: -> DomUtils.removeElement hintContainingDiv @@ -991,12 +987,10 @@ showFindModeHUDForQuery = -> window.enterFindMode = -> findModeQuery = { rawQuery: "" } - # window.findMode = true # Same hack, see comment at window.findMode definition. HUD.show("/") new FindMode() exitFindMode = -> - window.findMode = false # Same hack, see comment at window.findMode definition. HUD.hide() window.showHelpDialog = (html, fid) -> |
