Protocol
KeyDownHandler
public protocol KeyDownHandler : EventHandler
A type conforming to KeyDownHandler is capable of receiving
key down events through the onKeyDown method.
Before receiving events, it must be registered with the dispatcher via the registerKeyDownHandler method. Similarly, it should be unregistered before deinitialization via the unregisterKeyDownHandler method available through the dispatcher.
Relationships
Conforms To
EventHandlerAn
Eventhandleris a type capable of being registered with theDispatcherto receive events of a certain type.
Requirements
onKeyDown(key:code:ctrlKey:shiftKey:altKey:metaKey:)
func onKeyDown(key:String, code:String, ctrlKey:Bool, shiftKey:Bool, altKey:Bool, metaKey:Bool)