Keyboard focus lost after cancelling confirmation #1

Closed
opened 2026-04-06 19:46:28 +02:00 by nevaforget · 0 comments
Owner

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() in panel.rs removes the confirmation box from the widget tree but does not call grab_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 after dismiss_confirm().

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()` in `panel.rs` removes the confirmation box from the widget tree but does not call `grab_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 after `dismiss_confirm()`.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nevaforget/moonset#1
No description provided.