-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkeyevents.py
1760 lines (1760 loc) · 69.1 KB
/
keyevents.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
key_events={'ACTION_DOWN': {'as_int': 0,
'as_hex': '0x00000000',
'description': 'getAction() value: the key has been pressed down.',
'added': 1,
'deprecated': None},
'ACTION_MULTIPLE': {'as_int': 2,
'as_hex': '0x00000002',
'description': 'This constant was deprecated\n in API level 29.\n No longer used by the input system.\n getAction() value: multiple duplicate key events have\n occurred in a row, or a complex string is being delivered. If the\n key code is not KEYCODE_UNKNOWN then the\n getRepeatCount() method returns the number of times\n the given key code should be executed.\n Otherwise, if the key code is KEYCODE_UNKNOWN, then\n this is a sequence of characters as returned by getCharacters().',
'added': 1,
'deprecated': 29},
'ACTION_UP': {'as_int': 1,
'as_hex': '0x00000001',
'description': 'getAction() value: the key has been released.',
'added': 1,
'deprecated': None},
'FLAG_CANCELED': {'as_int': 32,
'as_hex': '0x00000020',
'description': 'When associated with up key events, this indicates that the key press\n has been canceled. Typically this is used with virtual touch screen\n keys, where the user can slide from the virtual key area on to the\n display: in that case, the application will receive a canceled up\n event and should not perform the action normally associated with the\n key. Note that for this to work, the application can not perform an\n action for a key until it receives an up or the long press timeout has\n expired.',
'added': 5,
'deprecated': None},
'FLAG_CANCELED_LONG_PRESS': {'as_int': 256,
'as_hex': '0x00000100',
'description': 'Set when a key event has FLAG_CANCELED set because a long\n press action was executed while it was down.',
'added': 5,
'deprecated': None},
'FLAG_EDITOR_ACTION': {'as_int': 16,
'as_hex': '0x00000010',
'description': 'This mask is used for compatibility, to identify enter keys that are\n coming from an IME whose enter key has been auto-labelled "next" or\n "done". This allows TextView to dispatch these as normal enter keys\n for old applications, but still do the appropriate action when\n receiving them.',
'added': 3,
'deprecated': None},
'FLAG_FALLBACK': {'as_int': 1024,
'as_hex': '0x00000400',
'description': 'Set when a key event has been synthesized to implement default behavior\n for an event that the application did not handle.\n Fallback key events are generated by unhandled trackball motions\n (to emulate a directional keypad) and by certain unhandled key presses\n that are declared in the key map (such as special function numeric keypad\n keys when numlock is off).',
'added': 11,
'deprecated': None},
'FLAG_FROM_SYSTEM': {'as_int': 8,
'as_hex': '0x00000008',
'description': 'This mask is set if an event was known to come from a trusted part\n of the system. That is, the event is known to come from the user,\n and could not have been spoofed by a third party component.',
'added': 3,
'deprecated': None},
'FLAG_KEEP_TOUCH_MODE': {'as_int': 4,
'as_hex': '0x00000004',
'description': "This mask is set if we don't want the key event to cause us to leave\n touch mode.",
'added': 3,
'deprecated': None},
'FLAG_LONG_PRESS': {'as_int': 128,
'as_hex': '0x00000080',
'description': 'This flag is set for the first key repeat that occurs after the\n long press timeout.',
'added': 5,
'deprecated': None},
'FLAG_SOFT_KEYBOARD': {'as_int': 2,
'as_hex': '0x00000002',
'description': 'This mask is set if the key event was generated by a software keyboard.',
'added': 3,
'deprecated': None},
'FLAG_TRACKING': {'as_int': 512,
'as_hex': '0x00000200',
'description': "Set for ACTION_UP when this event's key code is still being\n tracked from its initial down. That is, somebody requested that tracking\n started on the key down and a long press has not caused\n the tracking to be canceled.",
'added': 5,
'deprecated': None},
'FLAG_VIRTUAL_HARD_KEY': {'as_int': 64,
'as_hex': '0x00000040',
'description': 'This key event was generated by a virtual (on-screen) hard key area.\n Typically this is an area of the touchscreen, outside of the regular\n display, dedicated to "hardware" buttons.',
'added': 5,
'deprecated': None},
'KEYCODE_0': {'as_int': 7,
'as_hex': '0x00000007',
'description': "Key code constant: '0' key.",
'added': 1,
'deprecated': None},
'KEYCODE_1': {'as_int': 8,
'as_hex': '0x00000008',
'description': "Key code constant: '1' key.",
'added': 1,
'deprecated': None},
'KEYCODE_11': {'as_int': 227,
'as_hex': '0x000000e3',
'description': "Key code constant: '11' key.",
'added': 21,
'deprecated': None},
'KEYCODE_12': {'as_int': 228,
'as_hex': '0x000000e4',
'description': "Key code constant: '12' key.",
'added': 21,
'deprecated': None},
'KEYCODE_2': {'as_int': 9,
'as_hex': '0x00000009',
'description': "Key code constant: '2' key.",
'added': 1,
'deprecated': None},
'KEYCODE_3': {'as_int': 10,
'as_hex': '0x0000000a',
'description': "Key code constant: '3' key.",
'added': 1,
'deprecated': None},
'KEYCODE_3D_MODE': {'as_int': 206,
'as_hex': '0x000000ce',
'description': 'Key code constant: 3D Mode key.\n Toggles the display between 2D and 3D mode.',
'added': 14,
'deprecated': None},
'KEYCODE_4': {'as_int': 11,
'as_hex': '0x0000000b',
'description': "Key code constant: '4' key.",
'added': 1,
'deprecated': None},
'KEYCODE_5': {'as_int': 12,
'as_hex': '0x0000000c',
'description': "Key code constant: '5' key.",
'added': 1,
'deprecated': None},
'KEYCODE_6': {'as_int': 13,
'as_hex': '0x0000000d',
'description': "Key code constant: '6' key.",
'added': 1,
'deprecated': None},
'KEYCODE_7': {'as_int': 14,
'as_hex': '0x0000000e',
'description': "Key code constant: '7' key.",
'added': 1,
'deprecated': None},
'KEYCODE_8': {'as_int': 15,
'as_hex': '0x0000000f',
'description': "Key code constant: '8' key.",
'added': 1,
'deprecated': None},
'KEYCODE_9': {'as_int': 16,
'as_hex': '0x00000010',
'description': "Key code constant: '9' key.",
'added': 1,
'deprecated': None},
'KEYCODE_A': {'as_int': 29,
'as_hex': '0x0000001d',
'description': "Key code constant: 'A' key.",
'added': 1,
'deprecated': None},
'KEYCODE_ALL_APPS': {'as_int': 284,
'as_hex': '0x0000011c',
'description': 'Key code constant: Show all apps',
'added': 28,
'deprecated': None},
'KEYCODE_ALT_LEFT': {'as_int': 57,
'as_hex': '0x00000039',
'description': 'Key code constant: Left Alt modifier key.',
'added': 1,
'deprecated': None},
'KEYCODE_ALT_RIGHT': {'as_int': 58,
'as_hex': '0x0000003a',
'description': 'Key code constant: Right Alt modifier key.',
'added': 1,
'deprecated': None},
'KEYCODE_APOSTROPHE': {'as_int': 75,
'as_hex': '0x0000004b',
'description': "Key code constant: ''' (apostrophe) key.",
'added': 1,
'deprecated': None},
'KEYCODE_APP_SWITCH': {'as_int': 187,
'as_hex': '0x000000bb',
'description': 'Key code constant: App switch key.\n Should bring up the application switcher dialog.',
'added': 11,
'deprecated': None},
'KEYCODE_ASSIST': {'as_int': 219,
'as_hex': '0x000000db',
'description': 'Key code constant: Assist key.\n Launches the global assist activity. Not delivered to applications.',
'added': 16,
'deprecated': None},
'KEYCODE_AT': {'as_int': 77,
'as_hex': '0x0000004d',
'description': "Key code constant: '@' key.",
'added': 1,
'deprecated': None},
'KEYCODE_AVR_INPUT': {'as_int': 182,
'as_hex': '0x000000b6',
'description': 'Key code constant: A/V Receiver input key.\n On TV remotes, switches the input mode on an external A/V Receiver.',
'added': 11,
'deprecated': None},
'KEYCODE_AVR_POWER': {'as_int': 181,
'as_hex': '0x000000b5',
'description': 'Key code constant: A/V Receiver power key.\n On TV remotes, toggles the power on an external A/V Receiver.',
'added': 11,
'deprecated': None},
'KEYCODE_B': {'as_int': 30,
'as_hex': '0x0000001e',
'description': "Key code constant: 'B' key.",
'added': 1,
'deprecated': None},
'KEYCODE_BACK': {'as_int': 4,
'as_hex': '0x00000004',
'description': 'Key code constant: Back key.',
'added': 1,
'deprecated': None},
'KEYCODE_BACKSLASH': {'as_int': 73,
'as_hex': '0x00000049',
'description': "Key code constant: '\\' key.",
'added': 1,
'deprecated': None},
'KEYCODE_BOOKMARK': {'as_int': 174,
'as_hex': '0x000000ae',
'description': 'Key code constant: Bookmark key.\n On some TV remotes, bookmarks content or web pages.',
'added': 11,
'deprecated': None},
'KEYCODE_BREAK': {'as_int': 121,
'as_hex': '0x00000079',
'description': 'Key code constant: Break / Pause key.',
'added': 11,
'deprecated': None},
'KEYCODE_BRIGHTNESS_DOWN': {'as_int': 220,
'as_hex': '0x000000dc',
'description': 'Key code constant: Brightness Down key.\n Adjusts the screen brightness down.',
'added': 18,
'deprecated': None},
'KEYCODE_BRIGHTNESS_UP': {'as_int': 221,
'as_hex': '0x000000dd',
'description': 'Key code constant: Brightness Up key.\n Adjusts the screen brightness up.',
'added': 18,
'deprecated': None},
'KEYCODE_BUTTON_1': {'as_int': 188,
'as_hex': '0x000000bc',
'description': 'Key code constant: Generic Game Pad Button #1.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_10': {'as_int': 197,
'as_hex': '0x000000c5',
'description': 'Key code constant: Generic Game Pad Button #10.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_11': {'as_int': 198,
'as_hex': '0x000000c6',
'description': 'Key code constant: Generic Game Pad Button #11.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_12': {'as_int': 199,
'as_hex': '0x000000c7',
'description': 'Key code constant: Generic Game Pad Button #12.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_13': {'as_int': 200,
'as_hex': '0x000000c8',
'description': 'Key code constant: Generic Game Pad Button #13.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_14': {'as_int': 201,
'as_hex': '0x000000c9',
'description': 'Key code constant: Generic Game Pad Button #14.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_15': {'as_int': 202,
'as_hex': '0x000000ca',
'description': 'Key code constant: Generic Game Pad Button #15.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_16': {'as_int': 203,
'as_hex': '0x000000cb',
'description': 'Key code constant: Generic Game Pad Button #16.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_2': {'as_int': 189,
'as_hex': '0x000000bd',
'description': 'Key code constant: Generic Game Pad Button #2.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_3': {'as_int': 190,
'as_hex': '0x000000be',
'description': 'Key code constant: Generic Game Pad Button #3.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_4': {'as_int': 191,
'as_hex': '0x000000bf',
'description': 'Key code constant: Generic Game Pad Button #4.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_5': {'as_int': 192,
'as_hex': '0x000000c0',
'description': 'Key code constant: Generic Game Pad Button #5.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_6': {'as_int': 193,
'as_hex': '0x000000c1',
'description': 'Key code constant: Generic Game Pad Button #6.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_7': {'as_int': 194,
'as_hex': '0x000000c2',
'description': 'Key code constant: Generic Game Pad Button #7.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_8': {'as_int': 195,
'as_hex': '0x000000c3',
'description': 'Key code constant: Generic Game Pad Button #8.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_9': {'as_int': 196,
'as_hex': '0x000000c4',
'description': 'Key code constant: Generic Game Pad Button #9.',
'added': 12,
'deprecated': None},
'KEYCODE_BUTTON_A': {'as_int': 96,
'as_hex': '0x00000060',
'description': 'Key code constant: A Button key.\n On a game controller, the A button should be either the button labeled A\n or the first button on the bottom row of controller buttons.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_B': {'as_int': 97,
'as_hex': '0x00000061',
'description': 'Key code constant: B Button key.\n On a game controller, the B button should be either the button labeled B\n or the second button on the bottom row of controller buttons.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_C': {'as_int': 98,
'as_hex': '0x00000062',
'description': 'Key code constant: C Button key.\n On a game controller, the C button should be either the button labeled C\n or the third button on the bottom row of controller buttons.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_L1': {'as_int': 102,
'as_hex': '0x00000066',
'description': 'Key code constant: L1 Button key.\n On a game controller, the L1 button should be either the button labeled L1 (or L)\n or the top left trigger button.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_L2': {'as_int': 104,
'as_hex': '0x00000068',
'description': 'Key code constant: L2 Button key.\n On a game controller, the L2 button should be either the button labeled L2\n or the bottom left trigger button.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_MODE': {'as_int': 110,
'as_hex': '0x0000006e',
'description': 'Key code constant: Mode Button key.\n On a game controller, the button labeled Mode.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_R1': {'as_int': 103,
'as_hex': '0x00000067',
'description': 'Key code constant: R1 Button key.\n On a game controller, the R1 button should be either the button labeled R1 (or R)\n or the top right trigger button.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_R2': {'as_int': 105,
'as_hex': '0x00000069',
'description': 'Key code constant: R2 Button key.\n On a game controller, the R2 button should be either the button labeled R2\n or the bottom right trigger button.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_SELECT': {'as_int': 109,
'as_hex': '0x0000006d',
'description': 'Key code constant: Select Button key.\n On a game controller, the button labeled Select.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_START': {'as_int': 108,
'as_hex': '0x0000006c',
'description': 'Key code constant: Start Button key.\n On a game controller, the button labeled Start.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_THUMBL': {'as_int': 106,
'as_hex': '0x0000006a',
'description': 'Key code constant: Left Thumb Button key.\n On a game controller, the left thumb button indicates that the left (or only)\n joystick is pressed.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_THUMBR': {'as_int': 107,
'as_hex': '0x0000006b',
'description': 'Key code constant: Right Thumb Button key.\n On a game controller, the right thumb button indicates that the right\n joystick is pressed.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_X': {'as_int': 99,
'as_hex': '0x00000063',
'description': 'Key code constant: X Button key.\n On a game controller, the X button should be either the button labeled X\n or the first button on the upper row of controller buttons.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_Y': {'as_int': 100,
'as_hex': '0x00000064',
'description': 'Key code constant: Y Button key.\n On a game controller, the Y button should be either the button labeled Y\n or the second button on the upper row of controller buttons.',
'added': 9,
'deprecated': None},
'KEYCODE_BUTTON_Z': {'as_int': 101,
'as_hex': '0x00000065',
'description': 'Key code constant: Z Button key.\n On a game controller, the Z button should be either the button labeled Z\n or the third button on the upper row of controller buttons.',
'added': 9,
'deprecated': None},
'KEYCODE_C': {'as_int': 31,
'as_hex': '0x0000001f',
'description': "Key code constant: 'C' key.",
'added': 1,
'deprecated': None},
'KEYCODE_CALCULATOR': {'as_int': 210,
'as_hex': '0x000000d2',
'description': 'Key code constant: Calculator special function key.\n Used to launch a calculator application.',
'added': 15,
'deprecated': None},
'KEYCODE_CALENDAR': {'as_int': 208,
'as_hex': '0x000000d0',
'description': 'Key code constant: Calendar special function key.\n Used to launch a calendar application.',
'added': 15,
'deprecated': None},
'KEYCODE_CALL': {'as_int': 5,
'as_hex': '0x00000005',
'description': 'Key code constant: Call key.',
'added': 1,
'deprecated': None},
'KEYCODE_CAMERA': {'as_int': 27,
'as_hex': '0x0000001b',
'description': 'Key code constant: Camera key.\n Used to launch a camera application or take pictures.',
'added': 1,
'deprecated': None},
'KEYCODE_CAPS_LOCK': {'as_int': 115,
'as_hex': '0x00000073',
'description': 'Key code constant: Caps Lock key.',
'added': 11,
'deprecated': None},
'KEYCODE_CAPTIONS': {'as_int': 175,
'as_hex': '0x000000af',
'description': 'Key code constant: Toggle captions key.\n Switches the mode for closed-captioning text, for example during television shows.',
'added': 11,
'deprecated': None},
'KEYCODE_CHANNEL_DOWN': {'as_int': 167,
'as_hex': '0x000000a7',
'description': 'Key code constant: Channel down key.\n On TV remotes, decrements the television channel.',
'added': 11,
'deprecated': None},
'KEYCODE_CHANNEL_UP': {'as_int': 166,
'as_hex': '0x000000a6',
'description': 'Key code constant: Channel up key.\n On TV remotes, increments the television channel.',
'added': 11,
'deprecated': None},
'KEYCODE_CLEAR': {'as_int': 28,
'as_hex': '0x0000001c',
'description': 'Key code constant: Clear key.',
'added': 1,
'deprecated': None},
'KEYCODE_COMMA': {'as_int': 55,
'as_hex': '0x00000037',
'description': "Key code constant: ',' key.",
'added': 1,
'deprecated': None},
'KEYCODE_CONTACTS': {'as_int': 207,
'as_hex': '0x000000cf',
'description': 'Key code constant: Contacts special function key.\n Used to launch an address book application.',
'added': 15,
'deprecated': None},
'KEYCODE_COPY': {'as_int': 278,
'as_hex': '0x00000116',
'description': 'Key code constant: Copy key.',
'added': 24,
'deprecated': None},
'KEYCODE_CTRL_LEFT': {'as_int': 113,
'as_hex': '0x00000071',
'description': 'Key code constant: Left Control modifier key.',
'added': 11,
'deprecated': None},
'KEYCODE_CTRL_RIGHT': {'as_int': 114,
'as_hex': '0x00000072',
'description': 'Key code constant: Right Control modifier key.',
'added': 11,
'deprecated': None},
'KEYCODE_CUT': {'as_int': 277,
'as_hex': '0x00000115',
'description': 'Key code constant: Cut key.',
'added': 24,
'deprecated': None},
'KEYCODE_D': {'as_int': 32,
'as_hex': '0x00000020',
'description': "Key code constant: 'D' key.",
'added': 1,
'deprecated': None},
'KEYCODE_DEL': {'as_int': 67,
'as_hex': '0x00000043',
'description': 'Key code constant: Backspace key.\n Deletes characters before the insertion point, unlike KEYCODE_FORWARD_DEL.',
'added': 1,
'deprecated': None},
'KEYCODE_DEMO_APP_1': {'as_int': 301,
'as_hex': '0x0000012d',
'description': 'Key code constant: Demo Application key #1.',
'added': 33,
'deprecated': None},
'KEYCODE_DEMO_APP_2': {'as_int': 302,
'as_hex': '0x0000012e',
'description': 'Key code constant: Demo Application key #2.',
'added': 33,
'deprecated': None},
'KEYCODE_DEMO_APP_3': {'as_int': 303,
'as_hex': '0x0000012f',
'description': 'Key code constant: Demo Application key #3.',
'added': 33,
'deprecated': None},
'KEYCODE_DEMO_APP_4': {'as_int': 304,
'as_hex': '0x00000130',
'description': 'Key code constant: Demo Application key #4.',
'added': 33,
'deprecated': None},
'KEYCODE_DPAD_CENTER': {'as_int': 23,
'as_hex': '0x00000017',
'description': 'Key code constant: Directional Pad Center key.\n May also be synthesized from trackball motions.',
'added': 1,
'deprecated': None},
'KEYCODE_DPAD_DOWN': {'as_int': 20,
'as_hex': '0x00000014',
'description': 'Key code constant: Directional Pad Down key.\n May also be synthesized from trackball motions.',
'added': 1,
'deprecated': None},
'KEYCODE_DPAD_DOWN_LEFT': {'as_int': 269,
'as_hex': '0x0000010d',
'description': 'Key code constant: Directional Pad Down-Left',
'added': 24,
'deprecated': None},
'KEYCODE_DPAD_DOWN_RIGHT': {'as_int': 271,
'as_hex': '0x0000010f',
'description': 'Key code constant: Directional Pad Down-Right',
'added': 24,
'deprecated': None},
'KEYCODE_DPAD_LEFT': {'as_int': 21,
'as_hex': '0x00000015',
'description': 'Key code constant: Directional Pad Left key.\n May also be synthesized from trackball motions.',
'added': 1,
'deprecated': None},
'KEYCODE_DPAD_RIGHT': {'as_int': 22,
'as_hex': '0x00000016',
'description': 'Key code constant: Directional Pad Right key.\n May also be synthesized from trackball motions.',
'added': 1,
'deprecated': None},
'KEYCODE_DPAD_UP': {'as_int': 19,
'as_hex': '0x00000013',
'description': 'Key code constant: Directional Pad Up key.\n May also be synthesized from trackball motions.',
'added': 1,
'deprecated': None},
'KEYCODE_DPAD_UP_LEFT': {'as_int': 268,
'as_hex': '0x0000010c',
'description': 'Key code constant: Directional Pad Up-Left',
'added': 24,
'deprecated': None},
'KEYCODE_DPAD_UP_RIGHT': {'as_int': 270,
'as_hex': '0x0000010e',
'description': 'Key code constant: Directional Pad Up-Right',
'added': 24,
'deprecated': None},
'KEYCODE_DVR': {'as_int': 173,
'as_hex': '0x000000ad',
'description': 'Key code constant: DVR key.\n On some TV remotes, switches to a DVR mode for recorded shows.',
'added': 11,
'deprecated': None},
'KEYCODE_E': {'as_int': 33,
'as_hex': '0x00000021',
'description': "Key code constant: 'E' key.",
'added': 1,
'deprecated': None},
'KEYCODE_EISU': {'as_int': 212,
'as_hex': '0x000000d4',
'description': 'Key code constant: Japanese alphanumeric key.',
'added': 16,
'deprecated': None},
'KEYCODE_ENDCALL': {'as_int': 6,
'as_hex': '0x00000006',
'description': 'Key code constant: End Call key.',
'added': 1,
'deprecated': None},
'KEYCODE_ENTER': {'as_int': 66,
'as_hex': '0x00000042',
'description': 'Key code constant: Enter key.',
'added': 1,
'deprecated': None},
'KEYCODE_ENVELOPE': {'as_int': 65,
'as_hex': '0x00000041',
'description': 'Key code constant: Envelope special function key.\n Used to launch a mail application.',
'added': 1,
'deprecated': None},
'KEYCODE_EQUALS': {'as_int': 70,
'as_hex': '0x00000046',
'description': "Key code constant: '=' key.",
'added': 1,
'deprecated': None},
'KEYCODE_ESCAPE': {'as_int': 111,
'as_hex': '0x0000006f',
'description': 'Key code constant: Escape key.',
'added': 11,
'deprecated': None},
'KEYCODE_EXPLORER': {'as_int': 64,
'as_hex': '0x00000040',
'description': 'Key code constant: Explorer special function key.\n Used to launch a browser application.',
'added': 1,
'deprecated': None},
'KEYCODE_F': {'as_int': 34,
'as_hex': '0x00000022',
'description': "Key code constant: 'F' key.",
'added': 1,
'deprecated': None},
'KEYCODE_F1': {'as_int': 131,
'as_hex': '0x00000083',
'description': 'Key code constant: F1 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F10': {'as_int': 140,
'as_hex': '0x0000008c',
'description': 'Key code constant: F10 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F11': {'as_int': 141,
'as_hex': '0x0000008d',
'description': 'Key code constant: F11 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F12': {'as_int': 142,
'as_hex': '0x0000008e',
'description': 'Key code constant: F12 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F2': {'as_int': 132,
'as_hex': '0x00000084',
'description': 'Key code constant: F2 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F3': {'as_int': 133,
'as_hex': '0x00000085',
'description': 'Key code constant: F3 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F4': {'as_int': 134,
'as_hex': '0x00000086',
'description': 'Key code constant: F4 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F5': {'as_int': 135,
'as_hex': '0x00000087',
'description': 'Key code constant: F5 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F6': {'as_int': 136,
'as_hex': '0x00000088',
'description': 'Key code constant: F6 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F7': {'as_int': 137,
'as_hex': '0x00000089',
'description': 'Key code constant: F7 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F8': {'as_int': 138,
'as_hex': '0x0000008a',
'description': 'Key code constant: F8 key.',
'added': 11,
'deprecated': None},
'KEYCODE_F9': {'as_int': 139,
'as_hex': '0x0000008b',
'description': 'Key code constant: F9 key.',
'added': 11,
'deprecated': None},
'KEYCODE_FEATURED_APP_1': {'as_int': 297,
'as_hex': '0x00000129',
'description': 'Key code constant: Featured Application key #1.',
'added': 33,
'deprecated': None},
'KEYCODE_FEATURED_APP_2': {'as_int': 298,
'as_hex': '0x0000012a',
'description': 'Key code constant: Featured Application key #2.',
'added': 33,
'deprecated': None},
'KEYCODE_FEATURED_APP_3': {'as_int': 299,
'as_hex': '0x0000012b',
'description': 'Key code constant: Featured Application key #3.',
'added': 33,
'deprecated': None},
'KEYCODE_FEATURED_APP_4': {'as_int': 300,
'as_hex': '0x0000012c',
'description': 'Key code constant: Featured Application key #4.',
'added': 33,
'deprecated': None},
'KEYCODE_FOCUS': {'as_int': 80,
'as_hex': '0x00000050',
'description': 'Key code constant: Camera Focus key.\n Used to focus the camera.',
'added': 1,
'deprecated': None},
'KEYCODE_FORWARD': {'as_int': 125,
'as_hex': '0x0000007d',
'description': 'Key code constant: Forward key.\n Navigates forward in the history stack. Complement of KEYCODE_BACK.',
'added': 11,
'deprecated': None},
'KEYCODE_FORWARD_DEL': {'as_int': 112,
'as_hex': '0x00000070',
'description': 'Key code constant: Forward Delete key.\n Deletes characters ahead of the insertion point, unlike KEYCODE_DEL.',
'added': 11,
'deprecated': None},
'KEYCODE_FUNCTION': {'as_int': 119,
'as_hex': '0x00000077',
'description': 'Key code constant: Function modifier key.',
'added': 11,
'deprecated': None},
'KEYCODE_G': {'as_int': 35,
'as_hex': '0x00000023',
'description': "Key code constant: 'G' key.",
'added': 1,
'deprecated': None},
'KEYCODE_GRAVE': {'as_int': 68,
'as_hex': '0x00000044',
'description': "Key code constant: '`' (backtick) key.",
'added': 1,
'deprecated': None},
'KEYCODE_GUIDE': {'as_int': 172,
'as_hex': '0x000000ac',
'description': 'Key code constant: Guide key.\n On TV remotes, shows a programming guide.',
'added': 11,
'deprecated': None},
'KEYCODE_H': {'as_int': 36,
'as_hex': '0x00000024',
'description': "Key code constant: 'H' key.",
'added': 1,
'deprecated': None},
'KEYCODE_HEADSETHOOK': {'as_int': 79,
'as_hex': '0x0000004f',
'description': 'Key code constant: Headset Hook key.\n Used to hang up calls and stop media.',
'added': 1,
'deprecated': None},
'KEYCODE_HELP': {'as_int': 259,
'as_hex': '0x00000103',
'description': 'Key code constant: Help key.',
'added': 21,
'deprecated': None},
'KEYCODE_HENKAN': {'as_int': 214,
'as_hex': '0x000000d6',
'description': 'Key code constant: Japanese conversion key.',
'added': 16,
'deprecated': None},
'KEYCODE_HOME': {'as_int': 3,
'as_hex': '0x00000003',
'description': 'Key code constant: Home key.\n This key is handled by the framework and is never delivered to applications.',
'added': 1,
'deprecated': None},
'KEYCODE_I': {'as_int': 37,
'as_hex': '0x00000025',
'description': "Key code constant: 'I' key.",
'added': 1,
'deprecated': None},
'KEYCODE_INFO': {'as_int': 165,
'as_hex': '0x000000a5',
'description': 'Key code constant: Info key.\n Common on TV remotes to show additional information related to what is\n currently being viewed.',
'added': 11,
'deprecated': None},
'KEYCODE_INSERT': {'as_int': 124,
'as_hex': '0x0000007c',
'description': 'Key code constant: Insert key.\n Toggles insert / overwrite edit mode.',
'added': 11,
'deprecated': None},
'KEYCODE_J': {'as_int': 38,
'as_hex': '0x00000026',
'description': "Key code constant: 'J' key.",
'added': 1,
'deprecated': None},
'KEYCODE_K': {'as_int': 39,
'as_hex': '0x00000027',
'description': "Key code constant: 'K' key.",
'added': 1,
'deprecated': None},
'KEYCODE_KANA': {'as_int': 218,
'as_hex': '0x000000da',
'description': 'Key code constant: Japanese kana key.',
'added': 16,
'deprecated': None},
'KEYCODE_KATAKANA_HIRAGANA': {'as_int': 215,
'as_hex': '0x000000d7',
'description': 'Key code constant: Japanese katakana / hiragana key.',
'added': 16,
'deprecated': None},
'KEYCODE_KEYBOARD_BACKLIGHT_DOWN': {'as_int': 305,
'as_hex': '0x00000131',
'description': 'Key code constant: Keyboard backlight down',
'added': 34,
'deprecated': None},
'KEYCODE_KEYBOARD_BACKLIGHT_TOGGLE': {'as_int': 307,
'as_hex': '0x00000133',
'description': 'Key code constant: Keyboard backlight toggle',
'added': 34,
'deprecated': None},
'KEYCODE_KEYBOARD_BACKLIGHT_UP': {'as_int': 306,
'as_hex': '0x00000132',
'description': 'Key code constant: Keyboard backlight up',
'added': 34,
'deprecated': None},
'KEYCODE_L': {'as_int': 40,
'as_hex': '0x00000028',
'description': "Key code constant: 'L' key.",
'added': 1,
'deprecated': None},
'KEYCODE_LANGUAGE_SWITCH': {'as_int': 204,
'as_hex': '0x000000cc',
'description': 'Key code constant: Language Switch key.\n Toggles the current input language such as switching between English and Japanese on\n a QWERTY keyboard. On some devices, the same function may be performed by\n pressing Shift+Spacebar.',
'added': 14,
'deprecated': None},
'KEYCODE_LAST_CHANNEL': {'as_int': 229,
'as_hex': '0x000000e5',
'description': 'Key code constant: Last Channel key.\n Goes to the last viewed channel.',
'added': 21,
'deprecated': None},
'KEYCODE_LEFT_BRACKET': {'as_int': 71,
'as_hex': '0x00000047',
'description': "Key code constant: '[' key.",
'added': 1,
'deprecated': None},
'KEYCODE_M': {'as_int': 41,
'as_hex': '0x00000029',
'description': "Key code constant: 'M' key.",
'added': 1,
'deprecated': None},
'KEYCODE_MACRO_1': {'as_int': 313,
'as_hex': '0x00000139',
'description': 'Key code constant: A button whose usage can be customized by the user through\n the system.\n User customizable key #1.',
'added': 34,
'deprecated': None},
'KEYCODE_MACRO_2': {'as_int': 314,
'as_hex': '0x0000013a',
'description': 'Key code constant: A button whose usage can be customized by the user through\n the system.\n User customizable key #2.',
'added': 34,
'deprecated': None},
'KEYCODE_MACRO_3': {'as_int': 315,
'as_hex': '0x0000013b',
'description': 'Key code constant: A button whose usage can be customized by the user through\n the system.\n User customizable key #3.',
'added': 34,
'deprecated': None},
'KEYCODE_MACRO_4': {'as_int': 316,
'as_hex': '0x0000013c',
'description': 'Key code constant: A button whose usage can be customized by the user through\n the system.\n User customizable key #4.',
'added': 34,
'deprecated': None},
'KEYCODE_MANNER_MODE': {'as_int': 205,
'as_hex': '0x000000cd',
'description': 'Key code constant: Manner Mode key.\n Toggles silent or vibrate mode on and off to make the device behave more politely\n in certain settings such as on a crowded train. On some devices, the key may only\n operate when long-pressed.',
'added': 14,
'deprecated': None},
'KEYCODE_MEDIA_AUDIO_TRACK': {'as_int': 222,
'as_hex': '0x000000de',
'description': 'Key code constant: Audio Track key.\n Switches the audio tracks.',
'added': 19,
'deprecated': None},
'KEYCODE_MEDIA_CLOSE': {'as_int': 128,
'as_hex': '0x00000080',
'description': 'Key code constant: Close media key.\n May be used to close a CD tray, for example.',
'added': 11,
'deprecated': None},
'KEYCODE_MEDIA_EJECT': {'as_int': 129,
'as_hex': '0x00000081',
'description': 'Key code constant: Eject media key.\n May be used to eject a CD tray, for example.',
'added': 11,
'deprecated': None},
'KEYCODE_MEDIA_FAST_FORWARD': {'as_int': 90,
'as_hex': '0x0000005a',
'description': 'Key code constant: Fast Forward media key.',
'added': 3,
'deprecated': None},
'KEYCODE_MEDIA_NEXT': {'as_int': 87,
'as_hex': '0x00000057',
'description': 'Key code constant: Play Next media key.',
'added': 3,
'deprecated': None},
'KEYCODE_MEDIA_PAUSE': {'as_int': 127,
'as_hex': '0x0000007f',
'description': 'Key code constant: Pause media key.',
'added': 11,
'deprecated': None},
'KEYCODE_MEDIA_PLAY': {'as_int': 126,
'as_hex': '0x0000007e',
'description': 'Key code constant: Play media key.',
'added': 11,
'deprecated': None},
'KEYCODE_MEDIA_PLAY_PAUSE': {'as_int': 85,
'as_hex': '0x00000055',
'description': 'Key code constant: Play/Pause media key.',
'added': 3,
'deprecated': None},
'KEYCODE_MEDIA_PREVIOUS': {'as_int': 88,
'as_hex': '0x00000058',
'description': 'Key code constant: Play Previous media key.',
'added': 3,
'deprecated': None},
'KEYCODE_MEDIA_RECORD': {'as_int': 130,
'as_hex': '0x00000082',
'description': 'Key code constant: Record media key.',
'added': 11,
'deprecated': None},
'KEYCODE_MEDIA_REWIND': {'as_int': 89,
'as_hex': '0x00000059',
'description': 'Key code constant: Rewind media key.',
'added': 3,
'deprecated': None},
'KEYCODE_MEDIA_SKIP_BACKWARD': {'as_int': 273,
'as_hex': '0x00000111',
'description': 'Key code constant: Skip backward media key.',
'added': 23,
'deprecated': None},
'KEYCODE_MEDIA_SKIP_FORWARD': {'as_int': 272,
'as_hex': '0x00000110',
'description': 'Key code constant: Skip forward media key.',
'added': 23,
'deprecated': None},
'KEYCODE_MEDIA_STEP_BACKWARD': {'as_int': 275,
'as_hex': '0x00000113',
'description': 'Key code constant: Step backward media key.\n Steps media backward, one frame at a time.',
'added': 23,
'deprecated': None},
'KEYCODE_MEDIA_STEP_FORWARD': {'as_int': 274,
'as_hex': '0x00000112',
'description': 'Key code constant: Step forward media key.\n Steps media forward, one frame at a time.',
'added': 23,
'deprecated': None},
'KEYCODE_MEDIA_STOP': {'as_int': 86,
'as_hex': '0x00000056',
'description': 'Key code constant: Stop media key.',
'added': 3,
'deprecated': None},
'KEYCODE_MEDIA_TOP_MENU': {'as_int': 226,
'as_hex': '0x000000e2',
'description': 'Key code constant: Media Top Menu key.\n Goes to the top of media menu.',
'added': 21,
'deprecated': None},
'KEYCODE_MENU': {'as_int': 82,
'as_hex': '0x00000052',
'description': 'Key code constant: Menu key.',
'added': 1,
'deprecated': None},
'KEYCODE_META_LEFT': {'as_int': 117,
'as_hex': '0x00000075',
'description': 'Key code constant: Left Meta modifier key.',
'added': 11,
'deprecated': None},
'KEYCODE_META_RIGHT': {'as_int': 118,
'as_hex': '0x00000076',
'description': 'Key code constant: Right Meta modifier key.',
'added': 11,
'deprecated': None},
'KEYCODE_MINUS': {'as_int': 69,
'as_hex': '0x00000045',
'description': "Key code constant: '-'.",
'added': 1,
'deprecated': None},
'KEYCODE_MOVE_END': {'as_int': 123,
'as_hex': '0x0000007b',
'description': 'Key code constant: End Movement key.\n Used for scrolling or moving the cursor around to the end of a line\n or to the bottom of a list.',
'added': 11,
'deprecated': None},
'KEYCODE_MOVE_HOME': {'as_int': 122,
'as_hex': '0x0000007a',
'description': 'Key code constant: Home Movement key.\n Used for scrolling or moving the cursor around to the start of a line\n or to the top of a list.',
'added': 11,
'deprecated': None},
'KEYCODE_MUHENKAN': {'as_int': 213,
'as_hex': '0x000000d5',
'description': 'Key code constant: Japanese non-conversion key.',
'added': 16,
'deprecated': None},
'KEYCODE_MUSIC': {'as_int': 209,
'as_hex': '0x000000d1',
'description': 'Key code constant: Music special function key.\n Used to launch a music player application.',
'added': 15,
'deprecated': None},
'KEYCODE_MUTE': {'as_int': 91,
'as_hex': '0x0000005b',
'description': 'Key code constant: Mute key.\n Mute key for the microphone (unlike KEYCODE_VOLUME_MUTE, which is the speaker mute\n key).',
'added': 3,
'deprecated': None},
'KEYCODE_N': {'as_int': 42,
'as_hex': '0x0000002a',
'description': "Key code constant: 'N' key.",
'added': 1,
'deprecated': None},
'KEYCODE_NAVIGATE_IN': {'as_int': 262,
'as_hex': '0x00000106',
'description': 'Key code constant: Navigate in key.\n Activates the item that currently has focus or expands to the next level of a navigation\n hierarchy.',
'added': 23,
'deprecated': None},
'KEYCODE_NAVIGATE_NEXT': {'as_int': 261,
'as_hex': '0x00000105',
'description': 'Key code constant: Navigate to next key.\n Advances to the next item in an ordered collection of items.',
'added': 23,
'deprecated': None},
'KEYCODE_NAVIGATE_OUT': {'as_int': 263,
'as_hex': '0x00000107',
'description': 'Key code constant: Navigate out key.\n Backs out one level of a navigation hierarchy or collapses the item that currently has\n focus.',
'added': 23,
'deprecated': None},
'KEYCODE_NAVIGATE_PREVIOUS': {'as_int': 260,
'as_hex': '0x00000104',
'description': 'Key code constant: Navigate to previous key.\n Goes backward by one item in an ordered collection of items.',
'added': 23,
'deprecated': None},
'KEYCODE_NOTIFICATION': {'as_int': 83,
'as_hex': '0x00000053',
'description': 'Key code constant: Notification key.',
'added': 1,
'deprecated': None},
'KEYCODE_NUM': {'as_int': 78,
'as_hex': '0x0000004e',
'description': 'Key code constant: Number modifier key.\n Used to enter numeric symbols.\n This key is not Num Lock; it is more like KEYCODE_ALT_LEFT and is\n interpreted as an ALT key by MetaKeyKeyListener.',
'added': 1,
'deprecated': None},
'KEYCODE_NUMPAD_0': {'as_int': 144,
'as_hex': '0x00000090',
'description': "Key code constant: Numeric keypad '0' key.",
'added': 11,
'deprecated': None},
'KEYCODE_NUMPAD_1': {'as_int': 145,
'as_hex': '0x00000091',
'description': "Key code constant: Numeric keypad '1' key.",
'added': 11,
'deprecated': None},
'KEYCODE_NUMPAD_2': {'as_int': 146,
'as_hex': '0x00000092',
'description': "Key code constant: Numeric keypad '2' key.",
'added': 11,
'deprecated': None},
'KEYCODE_NUMPAD_3': {'as_int': 147,
'as_hex': '0x00000093',
'description': "Key code constant: Numeric keypad '3' key.",
'added': 11,
'deprecated': None},