blockly > FieldNavigationPolicy

FieldNavigationPolicy class

Set of rules controlling keyboard navigation from a field.

Signature:

export declare class FieldNavigationPolicy implements INavigationPolicy<Field<any>> 

Implements: INavigationPolicy<Field<any>>

Methods

Method Modifiers Description
getFirstChild(_current) Returns null since fields do not have children.
getNextSibling(current) Returns the next field or input following the given field.
getParent(current) Returns the parent block of the given field.
getPreviousSibling(current) Returns the field or input preceding the given field.
isApplicable(current) Returns whether the given object can be navigated from by this policy.
isNavigable(current) Returns whether or not the given field can be navigated to.