KeyboardEvent class

Constructors

KeyboardEvent({required KeyboardEventType type, String? requestId, String? extensionId, required String key, required String code, int? keyCode, bool? altKey, bool? altgrKey, bool? ctrlKey, bool? shiftKey, bool? capsLock})
KeyboardEvent.fromJS(KeyboardEvent _wrapped)

Properties

altgrKey bool?
Whether or not the ALTGR key is pressed.
getter/setter pair
altKey bool?
Whether or not the ALT key is pressed.
getter/setter pair
capsLock bool?
Whether or not the CAPS_LOCK is enabled.
getter/setter pair
code String
Value of the physical key being pressed. The value is not affected by current keyboard layout or modifier state.
getter/setter pair
ctrlKey bool?
Whether or not the CTRL key is pressed.
getter/setter pair
extensionId String?
The extension ID of the sender of this keyevent.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
key String
Value of the key being pressed
getter/setter pair
keyCode int?
The deprecated HTML keyCode, which is system- and implementation-dependent numerical code signifying the unmodified identifier associated with the key pressed.
getter/setter pair
requestId String?
(Deprecated) The ID of the request. Use the requestId param from the onKeyEvent event instead.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shiftKey bool?
Whether or not the SHIFT key is pressed.
getter/setter pair
toJS → KeyboardEvent
no setter
type KeyboardEventType
One of keyup or keydown.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited