| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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 interface KeyboardEvent extends UIEvent default KeyboardEventWrappingImplementat
ion { | 5 interface KeyboardEvent extends UIEvent default KeyboardEventWrappingImplementat
ion { |
| 6 | 6 |
| 7 static final int KEY_LOCATION_LEFT = 0x01; | 7 static const int KEY_LOCATION_LEFT = 0x01; |
| 8 | 8 |
| 9 static final int KEY_LOCATION_NUMPAD = 0x03; | 9 static const int KEY_LOCATION_NUMPAD = 0x03; |
| 10 | 10 |
| 11 static final int KEY_LOCATION_RIGHT = 0x02; | 11 static const int KEY_LOCATION_RIGHT = 0x02; |
| 12 | 12 |
| 13 static final int KEY_LOCATION_STANDARD = 0x00; | 13 static const int KEY_LOCATION_STANDARD = 0x00; |
| 14 | 14 |
| 15 KeyboardEvent(String type, Window view, String keyIdentifier, int keyLocation, | 15 KeyboardEvent(String type, Window view, String keyIdentifier, int keyLocation, |
| 16 [bool canBubble, bool cancelable, bool ctrlKey, bool altKey, | 16 [bool canBubble, bool cancelable, bool ctrlKey, bool altKey, |
| 17 bool shiftKey, bool metaKey, bool altGraphKey]); | 17 bool shiftKey, bool metaKey, bool altGraphKey]); |
| 18 | 18 |
| 19 bool get altGraphKey(); | 19 bool get altGraphKey(); |
| 20 | 20 |
| 21 bool get altKey(); | 21 bool get altKey(); |
| 22 | 22 |
| 23 bool get ctrlKey(); | 23 bool get ctrlKey(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 * Defines the standard key locations returned by | 41 * Defines the standard key locations returned by |
| 42 * KeyboardEvent.getKeyLocation. | 42 * KeyboardEvent.getKeyLocation. |
| 43 */ | 43 */ |
| 44 interface KeyLocation { | 44 interface KeyLocation { |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * The event key is not distinguished as the left or right version | 47 * The event key is not distinguished as the left or right version |
| 48 * of the key, and did not originate from the numeric keypad (or did not | 48 * of the key, and did not originate from the numeric keypad (or did not |
| 49 * originate with a virtual key corresponding to the numeric keypad). | 49 * originate with a virtual key corresponding to the numeric keypad). |
| 50 */ | 50 */ |
| 51 static final int STANDARD = 0; | 51 static const int STANDARD = 0; |
| 52 | 52 |
| 53 /** | 53 /** |
| 54 * The event key is in the left key location. | 54 * The event key is in the left key location. |
| 55 */ | 55 */ |
| 56 static final int LEFT = 1; | 56 static const int LEFT = 1; |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * The event key is in the right key location. | 59 * The event key is in the right key location. |
| 60 */ | 60 */ |
| 61 static final int RIGHT = 2; | 61 static const int RIGHT = 2; |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * The event key originated on the numeric keypad or with a virtual key | 64 * The event key originated on the numeric keypad or with a virtual key |
| 65 * corresponding to the numeric keypad. | 65 * corresponding to the numeric keypad. |
| 66 */ | 66 */ |
| 67 static final int NUMPAD = 3; | 67 static const int NUMPAD = 3; |
| 68 | 68 |
| 69 /** | 69 /** |
| 70 * The event key originated on a mobile device, either on a physical | 70 * The event key originated on a mobile device, either on a physical |
| 71 * keypad or a virtual keyboard. | 71 * keypad or a virtual keyboard. |
| 72 */ | 72 */ |
| 73 static final int MOBILE = 4; | 73 static const int MOBILE = 4; |
| 74 | 74 |
| 75 /** | 75 /** |
| 76 * The event key originated on a game controller or a joystick on a mobile | 76 * The event key originated on a game controller or a joystick on a mobile |
| 77 * device. | 77 * device. |
| 78 */ | 78 */ |
| 79 static final int JOYSTICK = 5; | 79 static const int JOYSTICK = 5; |
| 80 } | 80 } |
| 81 | 81 |
| 82 /** | 82 /** |
| 83 * Defines the standard keyboard identifier names for keys that are returned | 83 * Defines the standard keyboard identifier names for keys that are returned |
| 84 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct | 84 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct |
| 85 * unicode mapping. | 85 * unicode mapping. |
| 86 */ | 86 */ |
| 87 interface KeyName { | 87 interface KeyName { |
| 88 | 88 |
| 89 /** The Accept (Commit, OK) key */ | 89 /** The Accept (Commit, OK) key */ |
| 90 static final String ACCEPT = "Accept"; | 90 static const String ACCEPT = "Accept"; |
| 91 | 91 |
| 92 /** The Add key */ | 92 /** The Add key */ |
| 93 static final String ADD = "Add"; | 93 static const String ADD = "Add"; |
| 94 | 94 |
| 95 /** The Again key */ | 95 /** The Again key */ |
| 96 static final String AGAIN = "Again"; | 96 static const String AGAIN = "Again"; |
| 97 | 97 |
| 98 /** The All Candidates key */ | 98 /** The All Candidates key */ |
| 99 static final String ALL_CANDIDATES = "AllCandidates"; | 99 static const String ALL_CANDIDATES = "AllCandidates"; |
| 100 | 100 |
| 101 /** The Alphanumeric key */ | 101 /** The Alphanumeric key */ |
| 102 static final String ALPHANUMERIC = "Alphanumeric"; | 102 static const String ALPHANUMERIC = "Alphanumeric"; |
| 103 | 103 |
| 104 /** The Alt (Menu) key */ | 104 /** The Alt (Menu) key */ |
| 105 static final String ALT = "Alt"; | 105 static const String ALT = "Alt"; |
| 106 | 106 |
| 107 /** The Alt-Graph key */ | 107 /** The Alt-Graph key */ |
| 108 static final String ALT_GRAPH = "AltGraph"; | 108 static const String ALT_GRAPH = "AltGraph"; |
| 109 | 109 |
| 110 /** The Application key */ | 110 /** The Application key */ |
| 111 static final String APPS = "Apps"; | 111 static const String APPS = "Apps"; |
| 112 | 112 |
| 113 /** The ATTN key */ | 113 /** The ATTN key */ |
| 114 static final String ATTN = "Attn"; | 114 static const String ATTN = "Attn"; |
| 115 | 115 |
| 116 /** The Browser Back key */ | 116 /** The Browser Back key */ |
| 117 static final String BROWSER_BACK = "BrowserBack"; | 117 static const String BROWSER_BACK = "BrowserBack"; |
| 118 | 118 |
| 119 /** The Browser Favorites key */ | 119 /** The Browser Favorites key */ |
| 120 static final String BROWSER_FAVORTIES = "BrowserFavorites"; | 120 static const String BROWSER_FAVORTIES = "BrowserFavorites"; |
| 121 | 121 |
| 122 /** The Browser Forward key */ | 122 /** The Browser Forward key */ |
| 123 static final String BROWSER_FORWARD = "BrowserForward"; | 123 static const String BROWSER_FORWARD = "BrowserForward"; |
| 124 | 124 |
| 125 /** The Browser Home key */ | 125 /** The Browser Home key */ |
| 126 static final String BROWSER_NAME = "BrowserHome"; | 126 static const String BROWSER_NAME = "BrowserHome"; |
| 127 | 127 |
| 128 /** The Browser Refresh key */ | 128 /** The Browser Refresh key */ |
| 129 static final String BROWSER_REFRESH = "BrowserRefresh"; | 129 static const String BROWSER_REFRESH = "BrowserRefresh"; |
| 130 | 130 |
| 131 /** The Browser Search key */ | 131 /** The Browser Search key */ |
| 132 static final String BROWSER_SEARCH = "BrowserSearch"; | 132 static const String BROWSER_SEARCH = "BrowserSearch"; |
| 133 | 133 |
| 134 /** The Browser Stop key */ | 134 /** The Browser Stop key */ |
| 135 static final String BROWSER_STOP = "BrowserStop"; | 135 static const String BROWSER_STOP = "BrowserStop"; |
| 136 | 136 |
| 137 /** The Camera key */ | 137 /** The Camera key */ |
| 138 static final String CAMERA = "Camera"; | 138 static const String CAMERA = "Camera"; |
| 139 | 139 |
| 140 /** The Caps Lock (Capital) key */ | 140 /** The Caps Lock (Capital) key */ |
| 141 static final String CAPS_LOCK = "CapsLock"; | 141 static const String CAPS_LOCK = "CapsLock"; |
| 142 | 142 |
| 143 /** The Clear key */ | 143 /** The Clear key */ |
| 144 static final String CLEAR = "Clear"; | 144 static const String CLEAR = "Clear"; |
| 145 | 145 |
| 146 /** The Code Input key */ | 146 /** The Code Input key */ |
| 147 static final String CODE_INPUT = "CodeInput"; | 147 static const String CODE_INPUT = "CodeInput"; |
| 148 | 148 |
| 149 /** The Compose key */ | 149 /** The Compose key */ |
| 150 static final String COMPOSE = "Compose"; | 150 static const String COMPOSE = "Compose"; |
| 151 | 151 |
| 152 /** The Control (Ctrl) key */ | 152 /** The Control (Ctrl) key */ |
| 153 static final String CONTROL = "Control"; | 153 static const String CONTROL = "Control"; |
| 154 | 154 |
| 155 /** The Crsel key */ | 155 /** The Crsel key */ |
| 156 static final String CRSEL = "Crsel"; | 156 static const String CRSEL = "Crsel"; |
| 157 | 157 |
| 158 /** The Convert key */ | 158 /** The Convert key */ |
| 159 static final String CONVERT = "Convert"; | 159 static const String CONVERT = "Convert"; |
| 160 | 160 |
| 161 /** The Copy key */ | 161 /** The Copy key */ |
| 162 static final String COPY = "Copy"; | 162 static const String COPY = "Copy"; |
| 163 | 163 |
| 164 /** The Cut key */ | 164 /** The Cut key */ |
| 165 static final String CUT = "Cut"; | 165 static const String CUT = "Cut"; |
| 166 | 166 |
| 167 /** The Decimal key */ | 167 /** The Decimal key */ |
| 168 static final String DECIMAL = "Decimal"; | 168 static const String DECIMAL = "Decimal"; |
| 169 | 169 |
| 170 /** The Divide key */ | 170 /** The Divide key */ |
| 171 static final String DIVIDE = "Divide"; | 171 static const String DIVIDE = "Divide"; |
| 172 | 172 |
| 173 /** The Down Arrow key */ | 173 /** The Down Arrow key */ |
| 174 static final String DOWN = "Down"; | 174 static const String DOWN = "Down"; |
| 175 | 175 |
| 176 /** The diagonal Down-Left Arrow key */ | 176 /** The diagonal Down-Left Arrow key */ |
| 177 static final String DOWN_LEFT = "DownLeft"; | 177 static const String DOWN_LEFT = "DownLeft"; |
| 178 | 178 |
| 179 /** The diagonal Down-Right Arrow key */ | 179 /** The diagonal Down-Right Arrow key */ |
| 180 static final String DOWN_RIGHT = "DownRight"; | 180 static const String DOWN_RIGHT = "DownRight"; |
| 181 | 181 |
| 182 /** The Eject key */ | 182 /** The Eject key */ |
| 183 static final String EJECT = "Eject"; | 183 static const String EJECT = "Eject"; |
| 184 | 184 |
| 185 /** The End key */ | 185 /** The End key */ |
| 186 static final String END = "End"; | 186 static const String END = "End"; |
| 187 | 187 |
| 188 /** | 188 /** |
| 189 * The Enter key. Note: This key value must also be used for the Return | 189 * The Enter key. Note: This key value must also be used for the Return |
| 190 * (Macintosh numpad) key | 190 * (Macintosh numpad) key |
| 191 */ | 191 */ |
| 192 static final String ENTER = "Enter"; | 192 static const String ENTER = "Enter"; |
| 193 | 193 |
| 194 /** The Erase EOF key */ | 194 /** The Erase EOF key */ |
| 195 static final String ERASE_EOF= "EraseEof"; | 195 static const String ERASE_EOF= "EraseEof"; |
| 196 | 196 |
| 197 /** The Execute key */ | 197 /** The Execute key */ |
| 198 static final String EXECUTE = "Execute"; | 198 static const String EXECUTE = "Execute"; |
| 199 | 199 |
| 200 /** The Exsel key */ | 200 /** The Exsel key */ |
| 201 static final String EXSEL = "Exsel"; | 201 static const String EXSEL = "Exsel"; |
| 202 | 202 |
| 203 /** The Function switch key */ | 203 /** The Function switch key */ |
| 204 static final String FN = "Fn"; | 204 static const String FN = "Fn"; |
| 205 | 205 |
| 206 /** The F1 key */ | 206 /** The F1 key */ |
| 207 static final String F1 = "F1"; | 207 static const String F1 = "F1"; |
| 208 | 208 |
| 209 /** The F2 key */ | 209 /** The F2 key */ |
| 210 static final String F2 = "F2"; | 210 static const String F2 = "F2"; |
| 211 | 211 |
| 212 /** The F3 key */ | 212 /** The F3 key */ |
| 213 static final String F3 = "F3"; | 213 static const String F3 = "F3"; |
| 214 | 214 |
| 215 /** The F4 key */ | 215 /** The F4 key */ |
| 216 static final String F4 = "F4"; | 216 static const String F4 = "F4"; |
| 217 | 217 |
| 218 /** The F5 key */ | 218 /** The F5 key */ |
| 219 static final String F5 = "F5"; | 219 static const String F5 = "F5"; |
| 220 | 220 |
| 221 /** The F6 key */ | 221 /** The F6 key */ |
| 222 static final String F6 = "F6"; | 222 static const String F6 = "F6"; |
| 223 | 223 |
| 224 /** The F7 key */ | 224 /** The F7 key */ |
| 225 static final String F7 = "F7"; | 225 static const String F7 = "F7"; |
| 226 | 226 |
| 227 /** The F8 key */ | 227 /** The F8 key */ |
| 228 static final String F8 = "F8"; | 228 static const String F8 = "F8"; |
| 229 | 229 |
| 230 /** The F9 key */ | 230 /** The F9 key */ |
| 231 static final String F9 = "F9"; | 231 static const String F9 = "F9"; |
| 232 | 232 |
| 233 /** The F10 key */ | 233 /** The F10 key */ |
| 234 static final String F10 = "F10"; | 234 static const String F10 = "F10"; |
| 235 | 235 |
| 236 /** The F11 key */ | 236 /** The F11 key */ |
| 237 static final String F11 = "F11"; | 237 static const String F11 = "F11"; |
| 238 | 238 |
| 239 /** The F12 key */ | 239 /** The F12 key */ |
| 240 static final String F12 = "F12"; | 240 static const String F12 = "F12"; |
| 241 | 241 |
| 242 /** The F13 key */ | 242 /** The F13 key */ |
| 243 static final String F13 = "F13"; | 243 static const String F13 = "F13"; |
| 244 | 244 |
| 245 /** The F14 key */ | 245 /** The F14 key */ |
| 246 static final String F14 = "F14"; | 246 static const String F14 = "F14"; |
| 247 | 247 |
| 248 /** The F15 key */ | 248 /** The F15 key */ |
| 249 static final String F15 = "F15"; | 249 static const String F15 = "F15"; |
| 250 | 250 |
| 251 /** The F16 key */ | 251 /** The F16 key */ |
| 252 static final String F16 = "F16"; | 252 static const String F16 = "F16"; |
| 253 | 253 |
| 254 /** The F17 key */ | 254 /** The F17 key */ |
| 255 static final String F17 = "F17"; | 255 static const String F17 = "F17"; |
| 256 | 256 |
| 257 /** The F18 key */ | 257 /** The F18 key */ |
| 258 static final String F18 = "F18"; | 258 static const String F18 = "F18"; |
| 259 | 259 |
| 260 /** The F19 key */ | 260 /** The F19 key */ |
| 261 static final String F19 = "F19"; | 261 static const String F19 = "F19"; |
| 262 | 262 |
| 263 /** The F20 key */ | 263 /** The F20 key */ |
| 264 static final String F20 = "F20"; | 264 static const String F20 = "F20"; |
| 265 | 265 |
| 266 /** The F21 key */ | 266 /** The F21 key */ |
| 267 static final String F21 = "F21"; | 267 static const String F21 = "F21"; |
| 268 | 268 |
| 269 /** The F22 key */ | 269 /** The F22 key */ |
| 270 static final String F22 = "F22"; | 270 static const String F22 = "F22"; |
| 271 | 271 |
| 272 /** The F23 key */ | 272 /** The F23 key */ |
| 273 static final String F23 = "F23"; | 273 static const String F23 = "F23"; |
| 274 | 274 |
| 275 /** The F24 key */ | 275 /** The F24 key */ |
| 276 static final String F24 = "F24"; | 276 static const String F24 = "F24"; |
| 277 | 277 |
| 278 /** The Final Mode (Final) key used on some asian keyboards */ | 278 /** The Final Mode (Final) key used on some asian keyboards */ |
| 279 static final String FINAL_MODE = "FinalMode"; | 279 static const String FINAL_MODE = "FinalMode"; |
| 280 | 280 |
| 281 /** The Find key */ | 281 /** The Find key */ |
| 282 static final String FIND = "Find"; | 282 static const String FIND = "Find"; |
| 283 | 283 |
| 284 /** The Full-Width Characters key */ | 284 /** The Full-Width Characters key */ |
| 285 static final String FULL_WIDTH = "FullWidth"; | 285 static const String FULL_WIDTH = "FullWidth"; |
| 286 | 286 |
| 287 /** The Half-Width Characters key */ | 287 /** The Half-Width Characters key */ |
| 288 static final String HALF_WIDTH = "HalfWidth"; | 288 static const String HALF_WIDTH = "HalfWidth"; |
| 289 | 289 |
| 290 /** The Hangul (Korean characters) Mode key */ | 290 /** The Hangul (Korean characters) Mode key */ |
| 291 static final String HANGUL_MODE = "HangulMode"; | 291 static const String HANGUL_MODE = "HangulMode"; |
| 292 | 292 |
| 293 /** The Hanja (Korean characters) Mode key */ | 293 /** The Hanja (Korean characters) Mode key */ |
| 294 static final String HANJA_MODE = "HanjaMode"; | 294 static const String HANJA_MODE = "HanjaMode"; |
| 295 | 295 |
| 296 /** The Help key */ | 296 /** The Help key */ |
| 297 static final String HELP = "Help"; | 297 static const String HELP = "Help"; |
| 298 | 298 |
| 299 /** The Hiragana (Japanese Kana characters) key */ | 299 /** The Hiragana (Japanese Kana characters) key */ |
| 300 static final String HIRAGANA = "Hiragana"; | 300 static const String HIRAGANA = "Hiragana"; |
| 301 | 301 |
| 302 /** The Home key */ | 302 /** The Home key */ |
| 303 static final String HOME = "Home"; | 303 static const String HOME = "Home"; |
| 304 | 304 |
| 305 /** The Insert (Ins) key */ | 305 /** The Insert (Ins) key */ |
| 306 static final String INSERT = "Insert"; | 306 static const String INSERT = "Insert"; |
| 307 | 307 |
| 308 /** The Japanese-Hiragana key */ | 308 /** The Japanese-Hiragana key */ |
| 309 static final String JAPANESE_HIRAGANA = "JapaneseHiragana"; | 309 static const String JAPANESE_HIRAGANA = "JapaneseHiragana"; |
| 310 | 310 |
| 311 /** The Japanese-Katakana key */ | 311 /** The Japanese-Katakana key */ |
| 312 static final String JAPANESE_KATAKANA = "JapaneseKatakana"; | 312 static const String JAPANESE_KATAKANA = "JapaneseKatakana"; |
| 313 | 313 |
| 314 /** The Japanese-Romaji key */ | 314 /** The Japanese-Romaji key */ |
| 315 static final String JAPANESE_ROMAJI = "JapaneseRomaji"; | 315 static const String JAPANESE_ROMAJI = "JapaneseRomaji"; |
| 316 | 316 |
| 317 /** The Junja Mode key */ | 317 /** The Junja Mode key */ |
| 318 static final String JUNJA_MODE = "JunjaMode"; | 318 static const String JUNJA_MODE = "JunjaMode"; |
| 319 | 319 |
| 320 /** The Kana Mode (Kana Lock) key */ | 320 /** The Kana Mode (Kana Lock) key */ |
| 321 static final String KANA_MODE = "KanaMode"; | 321 static const String KANA_MODE = "KanaMode"; |
| 322 | 322 |
| 323 /** | 323 /** |
| 324 * The Kanji (Japanese name for ideographic characters of Chinese origin) | 324 * The Kanji (Japanese name for ideographic characters of Chinese origin) |
| 325 * Mode key | 325 * Mode key |
| 326 */ | 326 */ |
| 327 static final String KANJI_MODE = "KanjiMode"; | 327 static const String KANJI_MODE = "KanjiMode"; |
| 328 | 328 |
| 329 /** The Katakana (Japanese Kana characters) key */ | 329 /** The Katakana (Japanese Kana characters) key */ |
| 330 static final String KATAKANA = "Katakana"; | 330 static const String KATAKANA = "Katakana"; |
| 331 | 331 |
| 332 /** The Start Application One key */ | 332 /** The Start Application One key */ |
| 333 static final String LAUNCH_APPLICATION_1 = "LaunchApplication1"; | 333 static const String LAUNCH_APPLICATION_1 = "LaunchApplication1"; |
| 334 | 334 |
| 335 /** The Start Application Two key */ | 335 /** The Start Application Two key */ |
| 336 static final String LAUNCH_APPLICATION_2 = "LaunchApplication2"; | 336 static const String LAUNCH_APPLICATION_2 = "LaunchApplication2"; |
| 337 | 337 |
| 338 /** The Start Mail key */ | 338 /** The Start Mail key */ |
| 339 static final String LAUNCH_MAIL = "LaunchMail"; | 339 static const String LAUNCH_MAIL = "LaunchMail"; |
| 340 | 340 |
| 341 /** The Left Arrow key */ | 341 /** The Left Arrow key */ |
| 342 static final String LEFT = "Left"; | 342 static const String LEFT = "Left"; |
| 343 | 343 |
| 344 /** The Menu key */ | 344 /** The Menu key */ |
| 345 static final String MENU = "Menu"; | 345 static const String MENU = "Menu"; |
| 346 | 346 |
| 347 /** | 347 /** |
| 348 * The Meta key. Note: This key value shall be also used for the Apple | 348 * The Meta key. Note: This key value shall be also used for the Apple |
| 349 * Command key | 349 * Command key |
| 350 */ | 350 */ |
| 351 static final String META = "Meta"; | 351 static const String META = "Meta"; |
| 352 | 352 |
| 353 /** The Media Next Track key */ | 353 /** The Media Next Track key */ |
| 354 static final String MEDIA_NEXT_TRACK = "MediaNextTrack"; | 354 static const String MEDIA_NEXT_TRACK = "MediaNextTrack"; |
| 355 | 355 |
| 356 /** The Media Play Pause key */ | 356 /** The Media Play Pause key */ |
| 357 static final String MEDIA_PAUSE_PLAY = "MediaPlayPause"; | 357 static const String MEDIA_PAUSE_PLAY = "MediaPlayPause"; |
| 358 | 358 |
| 359 /** The Media Previous Track key */ | 359 /** The Media Previous Track key */ |
| 360 static final String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack"; | 360 static const String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack"; |
| 361 | 361 |
| 362 /** The Media Stop key */ | 362 /** The Media Stop key */ |
| 363 static final String MEDIA_STOP = "MediaStop"; | 363 static const String MEDIA_STOP = "MediaStop"; |
| 364 | 364 |
| 365 /** The Mode Change key */ | 365 /** The Mode Change key */ |
| 366 static final String MODE_CHANGE = "ModeChange"; | 366 static const String MODE_CHANGE = "ModeChange"; |
| 367 | 367 |
| 368 /** The Next Candidate function key */ | 368 /** The Next Candidate function key */ |
| 369 static final String NEXT_CANDIDATE = "NextCandidate"; | 369 static const String NEXT_CANDIDATE = "NextCandidate"; |
| 370 | 370 |
| 371 /** The Nonconvert (Don't Convert) key */ | 371 /** The Nonconvert (Don't Convert) key */ |
| 372 static final String NON_CONVERT = "Nonconvert"; | 372 static const String NON_CONVERT = "Nonconvert"; |
| 373 | 373 |
| 374 /** The Number Lock key */ | 374 /** The Number Lock key */ |
| 375 static final String NUM_LOCK = "NumLock"; | 375 static const String NUM_LOCK = "NumLock"; |
| 376 | 376 |
| 377 /** The Page Down (Next) key */ | 377 /** The Page Down (Next) key */ |
| 378 static final String PAGE_DOWN = "PageDown"; | 378 static const String PAGE_DOWN = "PageDown"; |
| 379 | 379 |
| 380 /** The Page Up key */ | 380 /** The Page Up key */ |
| 381 static final String PAGE_UP = "PageUp"; | 381 static const String PAGE_UP = "PageUp"; |
| 382 | 382 |
| 383 /** The Paste key */ | 383 /** The Paste key */ |
| 384 static final String PASTE = "Paste"; | 384 static const String PASTE = "Paste"; |
| 385 | 385 |
| 386 /** The Pause key */ | 386 /** The Pause key */ |
| 387 static final String PAUSE = "Pause"; | 387 static const String PAUSE = "Pause"; |
| 388 | 388 |
| 389 /** The Play key */ | 389 /** The Play key */ |
| 390 static final String PLAY = "Play"; | 390 static const String PLAY = "Play"; |
| 391 | 391 |
| 392 /** | 392 /** |
| 393 * The Power key. Note: Some devices may not expose this key to the | 393 * The Power key. Note: Some devices may not expose this key to the |
| 394 * operating environment | 394 * operating environment |
| 395 */ | 395 */ |
| 396 static final String POWER = "Power"; | 396 static const String POWER = "Power"; |
| 397 | 397 |
| 398 /** The Previous Candidate function key */ | 398 /** The Previous Candidate function key */ |
| 399 static final String PREVIOUS_CANDIDATE = "PreviousCandidate"; | 399 static const String PREVIOUS_CANDIDATE = "PreviousCandidate"; |
| 400 | 400 |
| 401 /** The Print Screen (PrintScrn, SnapShot) key */ | 401 /** The Print Screen (PrintScrn, SnapShot) key */ |
| 402 static final String PRINT_SCREEN = "PrintScreen"; | 402 static const String PRINT_SCREEN = "PrintScreen"; |
| 403 | 403 |
| 404 /** The Process key */ | 404 /** The Process key */ |
| 405 static final String PROCESS = "Process"; | 405 static const String PROCESS = "Process"; |
| 406 | 406 |
| 407 /** The Props key */ | 407 /** The Props key */ |
| 408 static final String PROPS = "Props"; | 408 static const String PROPS = "Props"; |
| 409 | 409 |
| 410 /** The Right Arrow key */ | 410 /** The Right Arrow key */ |
| 411 static final String RIGHT = "Right"; | 411 static const String RIGHT = "Right"; |
| 412 | 412 |
| 413 /** The Roman Characters function key */ | 413 /** The Roman Characters function key */ |
| 414 static final String ROMAN_CHARACTERS = "RomanCharacters"; | 414 static const String ROMAN_CHARACTERS = "RomanCharacters"; |
| 415 | 415 |
| 416 /** The Scroll Lock key */ | 416 /** The Scroll Lock key */ |
| 417 static final String SCROLL = "Scroll"; | 417 static const String SCROLL = "Scroll"; |
| 418 | 418 |
| 419 /** The Select key */ | 419 /** The Select key */ |
| 420 static final String SELECT = "Select"; | 420 static const String SELECT = "Select"; |
| 421 | 421 |
| 422 /** The Select Media key */ | 422 /** The Select Media key */ |
| 423 static final String SELECT_MEDIA = "SelectMedia"; | 423 static const String SELECT_MEDIA = "SelectMedia"; |
| 424 | 424 |
| 425 /** The Separator key */ | 425 /** The Separator key */ |
| 426 static final String SEPARATOR = "Separator"; | 426 static const String SEPARATOR = "Separator"; |
| 427 | 427 |
| 428 /** The Shift key */ | 428 /** The Shift key */ |
| 429 static final String SHIFT = "Shift"; | 429 static const String SHIFT = "Shift"; |
| 430 | 430 |
| 431 /** The Soft1 key */ | 431 /** The Soft1 key */ |
| 432 static final String SOFT_1 = "Soft1"; | 432 static const String SOFT_1 = "Soft1"; |
| 433 | 433 |
| 434 /** The Soft2 key */ | 434 /** The Soft2 key */ |
| 435 static final String SOFT_2 = "Soft2"; | 435 static const String SOFT_2 = "Soft2"; |
| 436 | 436 |
| 437 /** The Soft3 key */ | 437 /** The Soft3 key */ |
| 438 static final String SOFT_3 = "Soft3"; | 438 static const String SOFT_3 = "Soft3"; |
| 439 | 439 |
| 440 /** The Soft4 key */ | 440 /** The Soft4 key */ |
| 441 static final String SOFT_4 = "Soft4"; | 441 static const String SOFT_4 = "Soft4"; |
| 442 | 442 |
| 443 /** The Stop key */ | 443 /** The Stop key */ |
| 444 static final String STOP = "Stop"; | 444 static const String STOP = "Stop"; |
| 445 | 445 |
| 446 /** The Subtract key */ | 446 /** The Subtract key */ |
| 447 static final String SUBTRACT = "Subtract"; | 447 static const String SUBTRACT = "Subtract"; |
| 448 | 448 |
| 449 /** The Symbol Lock key */ | 449 /** The Symbol Lock key */ |
| 450 static final String SYMBOL_LOCK = "SymbolLock"; | 450 static const String SYMBOL_LOCK = "SymbolLock"; |
| 451 | 451 |
| 452 /** The Up Arrow key */ | 452 /** The Up Arrow key */ |
| 453 static final String UP = "Up"; | 453 static const String UP = "Up"; |
| 454 | 454 |
| 455 /** The diagonal Up-Left Arrow key */ | 455 /** The diagonal Up-Left Arrow key */ |
| 456 static final String UP_LEFT = "UpLeft"; | 456 static const String UP_LEFT = "UpLeft"; |
| 457 | 457 |
| 458 /** The diagonal Up-Right Arrow key */ | 458 /** The diagonal Up-Right Arrow key */ |
| 459 static final String UP_RIGHT = "UpRight"; | 459 static const String UP_RIGHT = "UpRight"; |
| 460 | 460 |
| 461 /** The Undo key */ | 461 /** The Undo key */ |
| 462 static final String UNDO = "Undo"; | 462 static const String UNDO = "Undo"; |
| 463 | 463 |
| 464 /** The Volume Down key */ | 464 /** The Volume Down key */ |
| 465 static final String VOLUME_DOWN = "VolumeDown"; | 465 static const String VOLUME_DOWN = "VolumeDown"; |
| 466 | 466 |
| 467 /** The Volume Mute key */ | 467 /** The Volume Mute key */ |
| 468 static final String VOLUMN_MUTE = "VolumeMute"; | 468 static const String VOLUMN_MUTE = "VolumeMute"; |
| 469 | 469 |
| 470 /** The Volume Up key */ | 470 /** The Volume Up key */ |
| 471 static final String VOLUMN_UP = "VolumeUp"; | 471 static const String VOLUMN_UP = "VolumeUp"; |
| 472 | 472 |
| 473 /** The Windows Logo key */ | 473 /** The Windows Logo key */ |
| 474 static final String WIN = "Win"; | 474 static const String WIN = "Win"; |
| 475 | 475 |
| 476 /** The Zoom key */ | 476 /** The Zoom key */ |
| 477 static final String ZOOM = "Zoom"; | 477 static const String ZOOM = "Zoom"; |
| 478 | 478 |
| 479 /** | 479 /** |
| 480 * The Backspace (Back) key. Note: This key value shall be also used for the | 480 * The Backspace (Back) key. Note: This key value shall be also used for the |
| 481 * key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key | 481 * key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key |
| 482 */ | 482 */ |
| 483 static final String BACKSPACE = "Backspace"; | 483 static const String BACKSPACE = "Backspace"; |
| 484 | 484 |
| 485 /** The Horizontal Tabulation (Tab) key */ | 485 /** The Horizontal Tabulation (Tab) key */ |
| 486 static final String TAB = "Tab"; | 486 static const String TAB = "Tab"; |
| 487 | 487 |
| 488 /** The Cancel key */ | 488 /** The Cancel key */ |
| 489 static final String CANCEL = "Cancel"; | 489 static const String CANCEL = "Cancel"; |
| 490 | 490 |
| 491 /** The Escape (Esc) key */ | 491 /** The Escape (Esc) key */ |
| 492 static final String ESC = "Esc"; | 492 static const String ESC = "Esc"; |
| 493 | 493 |
| 494 /** The Space (Spacebar) key: */ | 494 /** The Space (Spacebar) key: */ |
| 495 static final String SPACEBAR = "Spacebar"; | 495 static const String SPACEBAR = "Spacebar"; |
| 496 | 496 |
| 497 /** | 497 /** |
| 498 * The Delete (Del) Key. Note: This key value shall be also used for the key | 498 * The Delete (Del) Key. Note: This key value shall be also used for the key |
| 499 * labeled 'delete' MacOS keyboards when modified by the 'Fn' key | 499 * labeled 'delete' MacOS keyboards when modified by the 'Fn' key |
| 500 */ | 500 */ |
| 501 static final String DEL = "Del"; | 501 static const String DEL = "Del"; |
| 502 | 502 |
| 503 /** The Combining Grave Accent (Greek Varia, Dead Grave) key */ | 503 /** The Combining Grave Accent (Greek Varia, Dead Grave) key */ |
| 504 static final String DEAD_GRAVE = "DeadGrave"; | 504 static const String DEAD_GRAVE = "DeadGrave"; |
| 505 | 505 |
| 506 /** | 506 /** |
| 507 * The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute) | 507 * The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute) |
| 508 * key | 508 * key |
| 509 */ | 509 */ |
| 510 static final String DEAD_EACUTE = "DeadEacute"; | 510 static const String DEAD_EACUTE = "DeadEacute"; |
| 511 | 511 |
| 512 /** The Combining Circumflex Accent (Hat, Dead Circumflex) key */ | 512 /** The Combining Circumflex Accent (Hat, Dead Circumflex) key */ |
| 513 static final String DEAD_CIRCUMFLEX = "DeadCircumflex"; | 513 static const String DEAD_CIRCUMFLEX = "DeadCircumflex"; |
| 514 | 514 |
| 515 /** The Combining Tilde (Dead Tilde) key */ | 515 /** The Combining Tilde (Dead Tilde) key */ |
| 516 static final String DEAD_TILDE = "DeadTilde"; | 516 static const String DEAD_TILDE = "DeadTilde"; |
| 517 | 517 |
| 518 /** The Combining Macron (Long, Dead Macron) key */ | 518 /** The Combining Macron (Long, Dead Macron) key */ |
| 519 static final String DEAD_MACRON = "DeadMacron"; | 519 static const String DEAD_MACRON = "DeadMacron"; |
| 520 | 520 |
| 521 /** The Combining Breve (Short, Dead Breve) key */ | 521 /** The Combining Breve (Short, Dead Breve) key */ |
| 522 static final String DEAD_BREVE = "DeadBreve"; | 522 static const String DEAD_BREVE = "DeadBreve"; |
| 523 | 523 |
| 524 /** The Combining Dot Above (Derivative, Dead Above Dot) key */ | 524 /** The Combining Dot Above (Derivative, Dead Above Dot) key */ |
| 525 static final String DEAD_ABOVE_DOT = "DeadAboveDot"; | 525 static const String DEAD_ABOVE_DOT = "DeadAboveDot"; |
| 526 | 526 |
| 527 /** | 527 /** |
| 528 * The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika, | 528 * The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika, |
| 529 * Double Derivative, Dead Diaeresis) key | 529 * Double Derivative, Dead Diaeresis) key |
| 530 */ | 530 */ |
| 531 static final String DEAD_UMLAUT = "DeadUmlaut"; | 531 static const String DEAD_UMLAUT = "DeadUmlaut"; |
| 532 | 532 |
| 533 /** The Combining Ring Above (Dead Above Ring) key */ | 533 /** The Combining Ring Above (Dead Above Ring) key */ |
| 534 static final String DEAD_ABOVE_RING = "DeadAboveRing"; | 534 static const String DEAD_ABOVE_RING = "DeadAboveRing"; |
| 535 | 535 |
| 536 /** The Combining Double Acute Accent (Dead Doubleacute) key */ | 536 /** The Combining Double Acute Accent (Dead Doubleacute) key */ |
| 537 static final String DEAD_DOUBLEACUTE = "DeadDoubleacute"; | 537 static const String DEAD_DOUBLEACUTE = "DeadDoubleacute"; |
| 538 | 538 |
| 539 /** The Combining Caron (Hacek, V Above, Dead Caron) key */ | 539 /** The Combining Caron (Hacek, V Above, Dead Caron) key */ |
| 540 static final String DEAD_CARON = "DeadCaron"; | 540 static const String DEAD_CARON = "DeadCaron"; |
| 541 | 541 |
| 542 /** The Combining Cedilla (Dead Cedilla) key */ | 542 /** The Combining Cedilla (Dead Cedilla) key */ |
| 543 static final String DEAD_CEDILLA = "DeadCedilla"; | 543 static const String DEAD_CEDILLA = "DeadCedilla"; |
| 544 | 544 |
| 545 /** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */ | 545 /** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */ |
| 546 static final String DEAD_OGONEK = "DeadOgonek"; | 546 static const String DEAD_OGONEK = "DeadOgonek"; |
| 547 | 547 |
| 548 /** | 548 /** |
| 549 * The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota | 549 * The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota |
| 550 * Subscript, Dead Iota) key | 550 * Subscript, Dead Iota) key |
| 551 */ | 551 */ |
| 552 static final String DEAD_IOTA = "DeadIota"; | 552 static const String DEAD_IOTA = "DeadIota"; |
| 553 | 553 |
| 554 /** | 554 /** |
| 555 * The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key | 555 * The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key |
| 556 */ | 556 */ |
| 557 static final String DEAD_VOICED_SOUND = "DeadVoicedSound"; | 557 static const String DEAD_VOICED_SOUND = "DeadVoicedSound"; |
| 558 | 558 |
| 559 /** | 559 /** |
| 560 * The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced | 560 * The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced |
| 561 * Sound) key | 561 * Sound) key |
| 562 */ | 562 */ |
| 563 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; | 563 static const String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; |
| 564 | 564 |
| 565 /** | 565 /** |
| 566 * Key value used when an implementation is unable to identify another key | 566 * Key value used when an implementation is unable to identify another key |
| 567 * value, due to either hardware, platform, or software constraints | 567 * value, due to either hardware, platform, or software constraints |
| 568 */ | 568 */ |
| 569 static final String UNIDENTIFIED = "Unidentified"; | 569 static const String UNIDENTIFIED = "Unidentified"; |
| 570 } | 570 } |
| OLD | NEW |