Stay organized with collections
Save and categorize content based on your preferences.
blockly > INavigationPolicy
INavigationPolicy interface
A set of rules that specify where keyboard navigation should proceed.
Signature:
export interface INavigationPolicy<T>
Methods
Method |
Description |
getFirstChild(current) |
Returns the first child element of the given element, if any. |
getNextSibling(current) |
Returns the peer element following the given element, if any. |
getParent(current) |
Returns the parent element of the given element, if any. |
getPreviousSibling(current) |
Returns the peer element preceding the given element, if any. |
isApplicable(current) |
Returns whether or not this navigation policy corresponds to the type of the given object. |
isNavigable(current) |
Returns whether or not the given instance should be reachable via keyboard navigation. Implementors should generally return true, unless there are circumstances under which this item should be skipped while using keyboard navigation. Common examples might include being disabled, invalid, readonly, or purely a visual decoration. For example, while Fields are navigable, non-editable fields return false, since they cannot be interacted with when focused. |
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 [INavigationPolicy](./blockly.inavigationpolicy_interface.md)\n\nINavigationPolicy interface\n---------------------------\n\nA set of rules that specify where keyboard navigation should proceed.\n\n**Signature:** \n\n export interface INavigationPolicy\u003cT\u003e \n\nMethods\n-------\n\n| Method | Description |\n|--------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getFirstChild(current)](./blockly.inavigationpolicy_interface.getfirstchild_1_methodsignature.md) | Returns the first child element of the given element, if any. |\n| [getNextSibling(current)](./blockly.inavigationpolicy_interface.getnextsibling_1_methodsignature.md) | Returns the peer element following the given element, if any. |\n| [getParent(current)](./blockly.inavigationpolicy_interface.getparent_1_methodsignature.md) | Returns the parent element of the given element, if any. |\n| [getPreviousSibling(current)](./blockly.inavigationpolicy_interface.getprevioussibling_1_methodsignature.md) | Returns the peer element preceding the given element, if any. |\n| [isApplicable(current)](./blockly.inavigationpolicy_interface.isapplicable_1_methodsignature.md) | Returns whether or not this navigation policy corresponds to the type of the given object. |\n| [isNavigable(current)](./blockly.inavigationpolicy_interface.isnavigable_1_methodsignature.md) | Returns whether or not the given instance should be reachable via keyboard navigation. Implementors should generally return true, unless there are circumstances under which this item should be skipped while using keyboard navigation. Common examples might include being disabled, invalid, readonly, or purely a visual decoration. For example, while Fields are navigable, non-editable fields return false, since they cannot be interacted with when focused. |"]]