]> git.gir.st - VimFx.git/commit
Teach the `zF` command to find and activate dropmarkers
authorSimon Lydell <simon.lydell@gmail.com>
Wed, 22 Jun 2016 06:02:36 +0000 (08:02 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Wed, 22 Jun 2016 06:10:58 +0000 (08:10 +0200)
commitadf01041e772037f406a2fe887a59edc808e89d3
tree4dd7fffef92e78ad1a5b37cac2c26d1f5065da09
parenta677c9795df1a9a743365ca7d49a361a8437eb36
Teach the `zF` command to find and activate dropmarkers

For example, the bookmarks button has a "star" button on the left, which
acts like a normal button, and another button on the right, which
actually is a `<dropmarker>` and opens a `<menupopup>`. Previously,
VimFx didn't find the `<dropmarker>` (because it hasn't got
`.tabIndex > `-1). Now it does. Note that simulating a click on a
`<dropmarker>` triggers its parent button's action. Instead, the
`<menupopup>` must be found and triggered manually.

Another example of such a button is Greasemonkey’s button. Actually,
this "button with dropmarker" concept seems pretty common among add-ons.

This commit also removes the unnecessary double hint for the bookmarks
button, but filtering out `<toolbarbutton>`s which are direct children
of another `<toolbarbutton>`.

Fixes #766.
extension/lib/commands.coffee
extension/lib/utils.coffee
Imprint / Impressum