Stay organized with collections
Save and categorize content based on your preferences.
blockly > Navigator
Navigator class
Class responsible for determining where focus should move in response to keyboard navigation commands.
Signature:
export declare class Navigator
Properties
Property |
Modifiers |
Type |
Description |
rules |
protected |
RuleList<any> |
Map from classes to a corresponding ruleset to handle navigation from instances of that class. |
Methods
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-16 UTC."],[],[],null,["[blockly](./blockly.md) \\\u003e [Navigator](./blockly.navigator_class.md)\n\nNavigator class\n\nClass responsible for determining where focus should move in response to keyboard navigation commands.\n\n**Signature:** \n\n export declare class Navigator \n\nProperties\n\n| Property | Modifiers | Type | Description |\n|------------------------------------------------------|-------------|-----------------|------------------------------------------------------------------------------------------------|\n| [rules](./blockly.navigator_class.rules_property.md) | `protected` | RuleList\\\u003cany\\\u003e | Map from classes to a corresponding ruleset to handle navigation from instances of that class. |\n\nMethods\n\n| Method | Modifiers | Description |\n|------------------------------------------------------------------------------------------|-----------|--------------------------------------------------------------------|\n| [addNavigationPolicy(policy)](./blockly.navigator_class.addnavigationpolicy_1_method.md) | | Adds a navigation ruleset to this Navigator. |\n| [getFirstChild(current)](./blockly.navigator_class.getfirstchild_1_method.md) | | Returns the first child of the given object instance, if any. |\n| [getNextSibling(current)](./blockly.navigator_class.getnextsibling_1_method.md) | | Returns the next sibling of the given object instance, if any. |\n| [getParent(current)](./blockly.navigator_class.getparent_1_method.md) | | Returns the parent of the given object instance, if any. |\n| [getPreviousSibling(current)](./blockly.navigator_class.getprevioussibling_1_method.md) | | Returns the previous sibling of the given object instance, if any. |"]]