KeyEvent QML Type
A key press input event. More...
|Import Statement:||import Esri.ArcGISRuntime|
- count : int
- isAutoRepeat : bool
- key : int
- text : string
Note: You cannot declare or create a component of this type in QML code.
See also QKeyEvent.
count : int
Returns the number of keys involved in this event (read-only).
Contains the length of the text property if it is not empty.
isAutoRepeat : bool
Whether the key was generated from keyboard auto-repeat (read-only).
key : int
Returns the code for the key that was pressed or released (read-only).
The codes are enumerated in Qt.Key. The codes do not distinguish uppercase from lowercase letters, but this can be ascertained from the text property. 0 or Qt.Key_Unknown means that an unknown key was pressed.
text : string
Returns the text that the key generated (read-only).
This property can be an empty string when a key is pressed that does not produce text, such as Shift.