Represents a lock mode of a keyboard, such as KeyboardLockMode.capsLock.
A lock mode locks some of a keyboard's keys into a distinct mode of operation, depending on the lock settings selected. The status of the mode is toggled with each key down of its corresponding logical key. A KeyboardLockMode object is used to query whether this mode is enabled on the keyboard.
Only a limited number of modes are supported, which are enumerated as static members of this class. Manual constructing of this class is prohibited.
- numLock → const KeyboardLockMode
Represents the number lock mode on the keyboard.
On supporting systems, enabling number lock mode usually allows key presses of the number pad to input numbers, instead of acting as up, down, left, right, page up, end, etc.
- scrollLock → const KeyboardLockMode
Represents the scrolling lock mode on the keyboard.
On supporting systems and applications (such as a spreadsheet), enabling scrolling lock mode usually allows key presses of the cursor keys to scroll the document instead of the cursor.
- capsLock → const KeyboardLockMode
Represents the capital letters lock mode on the keyboard.
On supporting systems, enabling capital lock mode allows key presses of the letter keys to input uppercase letters instead of lowercase.
- hashCode → int
The hash code for this object.
- index → int
A numeric identifier for the enumerated value.
- logicalKey → LogicalKeyboardKey
The logical key that triggers this lock mode.
- runtimeType → Type
A representation of the runtime type of the object.