diff options
| author | Stephen Blott | 2015-01-02 14:21:20 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-02 14:21:20 +0000 |
| commit | 425eb0dd84c1d3bf3eb854bda68140db8c46cb7a (patch) | |
| tree | cf549b4aa373070af6da0444b90a0d59f1d5b11e /content_scripts/vimium_frontend.coffee | |
| parent | b179d80ac9c35eb85de3995e4c4fb7dc9945ed75 (diff) | |
| download | vimium-425eb0dd84c1d3bf3eb854bda68140db8c46cb7a.tar.bz2 | |
Modes; better frame handling.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 6d63b24a..7ce3e988 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -201,7 +201,7 @@ initializeWhenEnabled = (newPassKeys) -> # installListener document, "focus", onFocusCapturePhase # No longer needed. installListener document, "blur", onBlurCapturePhase installListener document, "DOMActivate", onDOMActivate - installListener document, "focus", onFocus + installListener document, "focusin", onFocus installListener document, "blur", onBlur enterInsertModeIfElementIsFocused() installedListeners = true @@ -281,6 +281,7 @@ window.focusThisFrame = (shouldHighlight) -> chrome.runtime.sendMessage({ handler: "nextFrame", frameId: frameId }) return window.focus() + Mode.updateBadge() if (document.body && shouldHighlight) borderWas = document.body.style.border document.body.style.border = '5px solid yellow' |
