Skip to content

network: Keep key focus in dialog when removing networks

Florian Müllner requested to merge wip/fmuellner/unbreak-wifi-keynav into master

When the actor that has the key focus is destroyed, Clutter moves the focus to the stage. In case the destroyed actor was inside a ModalDialog, this breaks any keyboard interaction: keynav is broken because the stage isn't in any focus chain, and access keys like Escape because they are handled on the dialog's parent.

The only dialog that may destroy a child without recreating the dialog buttons (and thus moving the key focus there) is the WirelessDialog, fix it by keeping the key focus within the dialog when removing networks from the list.

Fixes #76 (closed)

Merge request reports