Defines the standard key locations returned by KeyboardEvent.getKeyLocation.

Constants

JOYSTICK int

The event key originated on a game controller or a joystick on a mobile device.

const 5
LEFT int

The event key is in the left key location.

const 1
MOBILE int

The event key originated on a mobile device, either on a physical keypad or a virtual keyboard.

const 4
NUMPAD int

The event key originated on the numeric keypad or with a virtual key corresponding to the numeric keypad.

const 3

The event key is in the right key location.

const 2
STANDARD int

The event key is not distinguished as the left or right version of the key, and did not originate from the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad).

const 0

Constructors

KeyLocation()

Properties

hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
toString() String

Returns a string representation of this object.

inherited