feat: Add support for keyboard navigation into mutator workspaces. (#9151)

* feat: Add support for keyboard navigation into mutators.

* fix: Prevent mutator bubbles from jumping wildly during keyboard nav.
This commit is contained in:
Aaron Dodson
2025-06-23 09:09:56 -07:00
committed by GitHub
parent 97ffea73be
commit 1e5b4e9f42
6 changed files with 47 additions and 11 deletions

View File

@@ -64,9 +64,8 @@ export class Navigator {
getFirstChild(current: IFocusableNode): IFocusableNode | null {
const result = this.get(current)?.getFirstChild(current);
if (!result) return null;
// If the child isn't navigable, don't traverse into it; check its peers.
if (!this.get(result)?.isNavigable(result)) {
return this.getNextSibling(result);
return this.getFirstChild(result) || this.getNextSibling(result);
}
return result;
}