piroor / webextensions-lib-menu-ui

Menu-like UI library for Firefox addons based on WebExtensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support multi-letters keyboard navigation for item labels

piroor opened this issue · comments

Original: piroor/treestyletab#3077

Steps to reproduce

  1. Prepare multiple items with labels:
    • cabinet
    • column
    • auto
    • bold
  2. Hit "cab" from the keybaord.

Actual result

It moves focus as "cabinet" => "auto" => "bold" based on implicit accesskeys (the first letter).

Expectedresult

It should focus to the item "cabinet" (when they have no accesskey).

This behavior is beyond the simulation of Firefox's native menu, so this should be an optional behavior.

Incremental menu search on Firefox:
https://searchfox.org/mozilla-central/rev/a019f4f233dc43af0ade38be0914010448c4ce03/layout/xul/nsMenuPopupFrame.cpp#2124

related preference: ui.menu.incremental_search.timeout (default=1000)