onKeyTransition Method

Called when any key is pressed or released.

onKeyTransition(wentDown: boolean, keyEvent: KeyboardEvent): Promise<EventHandled>

@returns Yes to prevent further processing of this event

@see onModifierKeyTransition

Parameter Type Description
wentDown boolean  
keyEvent KeyboardEvent  

Returns - Promise<EventHandled>

Yes to prevent further processing of this event

Defined in

Last Updated: 14 November, 2024