KeyLocation abstract class

Defines the standard key locations returned by KeyboardEvent.getKeyLocation.

Constants

JOYSTICKint

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

5
LEFTint

The event key is in the left key location.

1
MOBILEint

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

4
NUMPADint

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

3

The event key is in the right key location.

2
STANDARDint

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).

0

Constructors

KeyLocation()

Properties

hashCodeint
read-only, inherited

The hash code for this object.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

toString() → String
inherited

Returns a string representation of this object.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/KeyLocation-class.html