File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -824,6 +824,13 @@ export class Navigation {
824824 * @returns whether keyboard navigation is currently allowed.
825825 */
826826 canCurrentlyNavigate ( workspace : Blockly . WorkspaceSvg ) {
827+ // Only the main/root workspace has the accessibility mode bit set; for
828+ // nested workspaces (mutators or flyouts) we need to walk up the tree.
829+ // Default to the root workspace if present. Flyouts don't consider
830+ // their workspaces to have a root workspace/be a nested child, so fall
831+ // back to checking the target workspace's root (`.targetWorkspace` only
832+ // exists on flyout workspaces) and then fall back to the target/main
833+ // workspace itself.
827834 const accessibilityMode = (
828835 workspace . getRootWorkspace ( ) ??
829836 workspace . targetWorkspace ?. getRootWorkspace ( ) ??
You can’t perform that action at this time.
0 commit comments