mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Addresses issue pointed by out @nathansobo in #15277 where keybindings for unfocusable nodes were being surfaced as accelerator indicators in context menus. When you right click in the DOM, your focus goes to the first focusable ancestor of your click target. This change uses the ancestor that you are actually focused on when looking for avaliable key bindings rather than using the event target directly. This ensures that any surfaced key bindings are actually reachable.
10 KiB
10 KiB