Skip to content

panelMenu: Fix keynav of menu-less buttons

Florian Müllner requested to merge fmuellner/gnome-shell:fix-stuck-focus into main

The left/right navigation between top bar buttons is usually handled by a key-press handler on the button's menu.

However when a DummyMenu is used, the button itself serves as fake menu actor and will get grabbed when "opening" the menu. Due to that grab, the event is not propagated to the stage, and regular keynav does not work.

To avoid the focus getting stuck in that case, add an explicit key-press handler that bypasses the grab.

Merge request reports