Keyboard class
Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The interface of the Keyboard API provides functions that retrieve keyboard layout maps and toggle capturing of key presses from the physical keyboard. A list of valid code values is found in the UI Events KeyboardEvent code Values spec.
EventTarget
Keyboard
- Implemented types
- Available extensions
- Annotations
-
- @experimental
- @JS()
- @staticInterop
Constructors
- Keyboard()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onlayoutchange
↔ EventHandlerNonNull<
Event> ? -
Available on Keyboard, provided by the PropsKeyboard extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
getLayoutMap(
) → Future< KeyboardLayoutMap> -
Available on Keyboard, provided by the PropsKeyboard extension
-
lock(
[Iterable< String> ? keyCodes = const []]) → Future<void> -
Available on Keyboard, provided by the PropsKeyboard extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
toString(
) → String -
A string representation of this object.
inherited
-
unlock(
) → void -
Available on Keyboard, provided by the PropsKeyboard extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited