| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 part of html; | |
| 6 | |
| 7 /** | |
| 8 * Defines the standard key locations returned by | |
| 9 * KeyboardEvent.getKeyLocation. | |
| 10 */ | |
| 11 abstract class KeyLocation { | |
| 12 | |
| 13 /** | |
| 14 * The event key is not distinguished as the left or right version | |
| 15 * of the key, and did not originate from the numeric keypad (or did not | |
| 16 * originate with a virtual key corresponding to the numeric keypad). | |
| 17 */ | |
| 18 static const int STANDARD = 0; | |
| 19 | |
| 20 /** | |
| 21 * The event key is in the left key location. | |
| 22 */ | |
| 23 static const int LEFT = 1; | |
| 24 | |
| 25 /** | |
| 26 * The event key is in the right key location. | |
| 27 */ | |
| 28 static const int RIGHT = 2; | |
| 29 | |
| 30 /** | |
| 31 * The event key originated on the numeric keypad or with a virtual key | |
| 32 * corresponding to the numeric keypad. | |
| 33 */ | |
| 34 static const int NUMPAD = 3; | |
| 35 | |
| 36 /** | |
| 37 * The event key originated on a mobile device, either on a physical | |
| 38 * keypad or a virtual keyboard. | |
| 39 */ | |
| 40 static const int MOBILE = 4; | |
| 41 | |
| 42 /** | |
| 43 * The event key originated on a game controller or a joystick on a mobile | |
| 44 * device. | |
| 45 */ | |
| 46 static const int JOYSTICK = 5; | |
| 47 } | |
| OLD | NEW |