Skip to content

Conversation

@leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Sep 17, 2025

Instead of manually handling keyboard focus where needed, do it like GTK does it with some adaptations.

We have the FocusController which is added to the "root" focusable of a focus tree (e.g. mtv or window overview).

Then we have the focusable class which is subclassed by the actors in the actor tree where focus is needed. The focusable handles deciding which implementor gets the focus based on the direction.

We now also hide the focus indicator after 5 seconds.

Fixes #2651
Fixes #2648

We can easily add navigation via Tab now too but I would leave that to a follow up

@leolost2605 leolost2605 changed the title Leolost/focusable Support keyboard navigation over multiple monitors in multitasking view Sep 17, 2025
@leolost2605 leolost2605 force-pushed the leolost/focusable branch 4 times, most recently from 919ea31 to 139ae2f Compare November 23, 2025 14:26
@leolost2605 leolost2605 marked this pull request as ready for review November 23, 2025 14:30
@leolost2605 leolost2605 requested a review from a team November 23, 2025 14:32
@leolost2605 leolost2605 force-pushed the leolost/focusable branch 2 times, most recently from d0aa36a to 6507c10 Compare November 26, 2025 15:26
@leolost2605 leolost2605 mentioned this pull request Nov 26, 2025
5 tasks
@danirabbit danirabbit moved this to Needs review in OS 8.1.0 Dec 1, 2025
@danirabbit danirabbit removed this from OS 8.1.0 Dec 15, 2025
@danirabbit danirabbit moved this to Needs review in OS 8.1.1 Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs review

Development

Successfully merging this pull request may close these issues.

Cannot select window by keyboard in multitasking view after workspace switching Pressing Esc doesn't close multitasking view

2 participants