OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 part of html; |
| 6 |
5 /** | 7 /** |
6 * Defines the keycode values for keys that are returned by | 8 * Defines the keycode values for keys that are returned by |
7 * KeyboardEvent.keyCode. | 9 * KeyboardEvent.keyCode. |
8 * | 10 * |
9 * Important note: There is substantial divergence in how different browsers | 11 * Important note: There is substantial divergence in how different browsers |
10 * handle keycodes and their variants in different locales/keyboard layouts. We | 12 * handle keycodes and their variants in different locales/keyboard layouts. We |
11 * provide these constants to help make code processing keys more readable. | 13 * provide these constants to help make code processing keys more readable. |
12 */ | 14 */ |
13 abstract class KeyCode { | 15 abstract class KeyCode { |
14 // These constant names were borrowed from Closure's Keycode enumeration | 16 // These constant names were borrowed from Closure's Keycode enumeration |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 static final int BACKSLASH = 220; | 189 static final int BACKSLASH = 220; |
188 /** | 190 /** |
189 * CAUTION: This constant requires localization for other locales and keyboard | 191 * CAUTION: This constant requires localization for other locales and keyboard |
190 * layouts. | 192 * layouts. |
191 */ | 193 */ |
192 static final int CLOSE_SQUARE_BRACKET = 221; | 194 static final int CLOSE_SQUARE_BRACKET = 221; |
193 static final int WIN_KEY = 224; | 195 static final int WIN_KEY = 224; |
194 static final int MAC_FF_META = 224; | 196 static final int MAC_FF_META = 224; |
195 static final int WIN_IME = 229; | 197 static final int WIN_IME = 229; |
196 } | 198 } |
OLD | NEW |