Keyboard focus lost after cancelling confirmation #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When the user selects an action (e.g. Reboot), the confirmation prompt appears with focus on the "No" button. After clicking "No" or otherwise dismissing the confirmation, keyboard navigation stops working — the action buttons are no longer reachable via Tab/arrow keys.
Root cause:
dismiss_confirm()inpanel.rsremoves the confirmation box from the widget tree but does not callgrab_focus()on any remaining action button. GTK's default focus chain doesn't reliably recover with layer-shell exclusive keyboard mode.Fix: Add explicit
grab_focus()on the first action button afterdismiss_confirm().