mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user