If an existing HierarchicalMap is specified, a shallow copy is made.
Optional
existing: HierarchicalMap<string, EventAction, EventActionMap>Existing map to make a shallow copy of.
Register parent
as a parent map. If priority > 0
, this map will take precedence over
direct bindings.
A nullary function that unregisters the parent (and may be called at most once).
Lookup the highest priority value to which the specified key is mapped.
Find all values to which the specified key is mapped.
Unregisters parent
as a parent.
Maps the specified event identifier
to the specified action
.
The identifier
may be unnormalized; the actual mapping is created for each corresponding
normalized identifier.
Static
fromReturns a new EventActionMap with the specified bindings.
The keys of the bindings
object specify unnormalized event identifiers to be mapped to their
corresponding ActionOrEventAction
values.
Optional
label?: stringOptional
parents?: Iterable<[EventActionMap, number]>Generated using TypeDoc
Hierarchical map of
EventIdentifier
specifications toEventAction
specifications. These maps are used by KeyboardEventBinder and MouseEventBinder to dispatch an ActionEvent in response to an input event.