]> git.gir.st - VimFx.git/commit
Clear artificial hover on blur
authorSimon Lydell <simon.lydell@gmail.com>
Fri, 1 Apr 2016 05:44:09 +0000 (07:44 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Fri, 1 Apr 2016 05:55:10 +0000 (07:55 +0200)
commit09c8b2f531928a61e766776aabf55a8e6eff138b
tree4c6d2c7336b9dda69c3d12194be366aa9db05189
parent98447f728026ee8441a27086a8e56d0266099cd8
Clear artificial hover on blur

Previously, if you focused an element using an `f` command and then pressed
`<tab>` to focus the next element, or if the element was automatically blurred,
the element would still look hovered until you pressed `<escape>`. This is
because many `f` commands lock the `:hover` pseudo-class on their target
element. This commit unlocks that pseudo-class if that element blurs, preventing
elements from getting "stuck". It is only done if the element itself is blurred,
not if anything else is. That's to make sure that dropdown menus opened using
`zf` don't close unexpectedly.
extension/lib/events-frame.coffee
Imprint / Impressum