Skip to main content

Home > blockly > Navigator

Class responsible for determining where focus should move in response to keyboard navigation commands.

Signature:

export declare class Navigator 

Properties

PropertyModifiersTypeDescription
rulesprotectedRuleList<any>Map from classes to a corresponding ruleset to handle navigation from instances of that class.

Methods

MethodModifiersDescription
addNavigationPolicy(policy)Adds a navigation ruleset to this Navigator.
getFirstChild(current)Returns the first child of the given object instance, if any.
getNextSibling(current)Returns the next sibling of the given object instance, if any.
getParent(current)Returns the parent of the given object instance, if any.
getPreviousSibling(current)Returns the previous sibling of the given object instance, if any.