]> git.gir.st - VimFx.git/commit
Save the focusType instead of getting it on every keydown
authorSimon Lydell <simon.lydell@gmail.com>
Fri, 26 Feb 2016 08:55:14 +0000 (09:55 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Fri, 26 Feb 2016 09:14:05 +0000 (10:14 +0100)
commitda8b3ccbf4058e52a8b19f857e65636f67cbb9ea
treeb04b35579e3fddb4a3d73ef79c6f89d9eef917e1
parente582f1599d6f05fba21c7abebe0546df4107d60a
Save the focusType instead of getting it on every keydown

This is simpler and more efficient. Also, we were basically already storing the
current focusType, since the button uses it to grey out when a text is focused.

Config API changes:

- `match` objects no longer have a `focus` property. It has been replaced with
  the `likelyConflict` property. (Theoretically a breaking change.)
- `vim.focusType` is now available and contains the current focus type.
- The `focusTypeChange` event now passes only the current `vim` object to
  listeners, instead of an object of data. Use `vim.focusType` to get the new
  focusType. (Theoretically a breaking change.)
documentation/api.md
extension/lib/events-frame.coffee
extension/lib/events.coffee
extension/lib/main.coffee
extension/lib/modes.coffee
extension/lib/utils.coffee
extension/lib/vim-frame.coffee
extension/lib/vim.coffee
extension/lib/vimfx.coffee
Imprint / Impressum