]> git.gir.st - VimFx.git/commit
Fix #213: Suppress logic bug
authorSimon Lydell <simon.lydell@gmail.com>
Fri, 25 Oct 2013 16:48:56 +0000 (18:48 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Fri, 25 Oct 2013 16:55:44 +0000 (18:55 +0200)
commitcc31bf0cbdd7370930717fd3dc431ddd9f1535b2
treef196807231404ca1d7e0c07d75b181502a9721dc
parentf47fce60871876e5203ecfc93bdbeb4c37c2a9a2
Fix #213: Suppress logic bug

For example, if you press 'x' to close the current tab, it will close
before keyup fires. So keyup (and perhaps keypress) will fire in another
tab. Even if that particular tab is blacklisted, we must suppress the
event, so that 'x' isn't sent to the page. The rule is simple: If the
`suppress` flag is `true`, the event should be suppressed, no matter what.
It has the highest priority.

Previously, `vim.blacklisted` checks were performed even in keypress and
keyup, which caused the suppress to be ignored.
extension/packages/events.coffee
Imprint / Impressum