KeyboardEventHandler
public protocol KeyboardEventHandler : EventHandler
A protocol describing a keyboard event handler object.
-
onKeyPress(_:
Default implementation) Main interface to forward key press events to the conforming type. Key presses are associated with textual-type character input instead of raw key codes.
Default Implementation
Declaration
Swift
func onKeyPress(_ event: KeyPressEventArgs)
-
onKeyDown(_:
Default implementation) Main interface to forward key down events to the conforming type.
Default Implementation
Declaration
Swift
func onKeyDown(_ event: KeyEventArgs)
-
onKeyUp(_:
Default implementation) Main interface to forward key up events to the conforming type.
Default Implementation
Declaration
Swift
func onKeyUp(_ event: KeyEventArgs)
-
onPreviewKeyDown(_:
Default implementation) Main interface to forward key preview events to the conforming type.
Preview keys may only be available on some OS platforms.
Default Implementation
Declaration
Swift
func onPreviewKeyDown(_ event: PreviewKeyDownEventArgs)