Event | Description | Event Arguments |
---|---|---|
Keyboard Action Events |
||
NKeyboard.KeyDownEvent | Raised when a keyboard key is pressed. The target is the current keyboard focus target. The event is routed along the entire route from the target node to its root. | NKeyEventArgs |
NKeyboard.KeyUpEvent | Raised when a keyboard key is released. The target is the current keyboard focus target. The event is routed along the entire route from the target node to its root. | NKeyEventArgs |
NKeyboard.InputCharEvent | Raised when a keyboard key(s) gesture is recognized as an Unicode input character. The target is the current keyboard focus target. The event is routed along the entire route from the target node to its root. | NInputCharEventArgs |
Keyboard Focus Target Events |
||
NKeyboard.GotFocusEvent | Raised when the keyboard is focused on a specific target. Further Keyboard Action Events will be raised for the focus target until the keyboard focus is moved to another target. The event is routed along the entire route from the target node to its root. | NFocusChangeEventArgs |
NKeyboard.FocusInEvent | Raised after NKeyboard.GotFocusEvent, but routed up to the last ancestor that was common between the previous focus target and the new one. | NFocusChangeEventArgs |
NKeyboard.FocusOutEvent | Raised before NKeyboard.LostFocusEvent, but routed up to the last ancestor that was common between the previous focus target and the new one. | NFocusChangeEventArgs |
NKeyboard.LostFocusEvent | Raised when a target looses keyboard focus. The event is routed along the entire route from the target node to its root. | NFocusChangeEventArgs |
Property | Description |
---|---|
NKeyboard.FocusedPropertyEx | Set to true for the input target on which has the keyboard focus. |
NKeyboard.FocusWithinPropertyEx | Set to true for the input target on which has the keyboard focus and all of its ancestors. |
At any time you can obtain the state of the modifier keys (Ctrl, Alt and Shift), via the following properties:
The NKeyboard also provides several methods for helping you obtain the current value of the extended properties that it has applied to a particular node. These are: