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
EventHandler
An
Eventhandler
is a type capable of being registered with theDispatcher
to 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)