-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
2771 lines (2711 loc) · 173 KB
/
index.html
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
<!doctype html><html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
<title>UI Events KeyboardEvent key Values</title>
<meta content="WD" name="w3c-status">
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-WD" rel="stylesheet">
<link href="https://www.w3.org/2008/site/images/favicon.ico" rel="icon">
<meta content="Bikeshed version 3383f409d, updated Fri Apr 28 15:49:22 2023 -0700" name="generator">
<link href="http://www.w3.org/TR/uievents-key/" rel="canonical">
<meta content="41ddcc2a2d42bde0935263dfe91a28eb7acbbc4f" name="document-revision">
<style>
/* Used when spelling out words or symbols phonetically. */
span.phonetic {
font-style: italic;
}
/* KEY
* Denotes a key value (the value of the KeyboardEvent.key property).
*/
code.key {
color: #191970;
background-color: #b0e0e6;
padding: 0 2px;
border: 1px solid #b0d0d6;
border-radius: 3px;
display: inline-block;
direction: ltr;
}
code.key a:link, code.key a:visited {
color: #191970;
text-decoration: none;
}
code.key:hover, code.key a:hover {
color: #000000;
background-color: #b0d0d6;
}
/* CODE
* Denotes a code value that indicates the physical location of the key on
* the keyboard). This is the value of the KeyboardEvent.code property.
*/
code.code {
color: #191970;
background-color: #ffc4ff;
padding: 0 2px;
border: 1px solid #f0a4f0;
border-radius: 3px;
}
code.code a:link, code.code a:visited {
color: #191970;
text-decoration: none;
}
code.code:hover, code.code a:hover {
color: #000000;
background-color: #f0a4f0;
}
/* Denotes a string displayed on the keycap. */
code.keycap {
padding: 0 2px;
border: 1px solid black;
border-radius: 3px;
}
/* Denotes a Unicode code-point for the character. */
code.unicode {
color: #191970;
background-color: #98fb98;
}
/* Denotes an example glyph for the character. */
code.glyph {
color: #191970;
background-color: #ffe4b5;
}
code.android {
color: #408040;
}
code.appcommand {
color: #404080;
}
code.vk {
color: #804040;
}
/* Formatting for data tables (including the keyboard codes) */
.data-table {
border-collapse:collapse;
text-align:left;
width: 100%;
}
.data-table th {
background:none repeat scroll 0 0 #B9C9FE;
border-bottom:1px solid #FFFFFF;
border-top:4px solid #AABCFE;
color:#003399;
font-weight:normal;
padding: 0.4em 1em;
}
.data-table td {
background:none repeat scroll 0 0 #E8EDFF;
border-bottom:1px solid #FFFFFF;
border-top:1px solid transparent;
color:#666699;
padding: 0.4em 1em;
}
.data-table tr:hover td {
background:none repeat scroll 0 0 #D0DAFD;
color:#333399;
}
/* The cell in a key table that contains the key name. */
.key-table-key {
vertical-align: top;
}
.key-table-required {
vertical-align: top;
text-align: center;
}
.key-impl-data {
vertical-align: top;
text-align: center;
}
.key-impl-yes {
color: #0a0;
font-weight: bold;
}
.key-impl-no {
color: #f00;
font-weight: bold;
}
</style>
<style>/* style-autolinks */
.css.css, .property.property, .descriptor.descriptor {
color: var(--a-normal-text);
font-size: inherit;
font-family: inherit;
}
.css::before, .property::before, .descriptor::before {
content: "‘";
}
.css::after, .property::after, .descriptor::after {
content: "’";
}
.property, .descriptor {
/* Don't wrap property and descriptor names */
white-space: nowrap;
}
.type { /* CSS value <type> */
font-style: italic;
}
pre .property::before, pre .property::after {
content: "";
}
[data-link-type="property"]::before,
[data-link-type="propdesc"]::before,
[data-link-type="descriptor"]::before,
[data-link-type="value"]::before,
[data-link-type="function"]::before,
[data-link-type="at-rule"]::before,
[data-link-type="selector"]::before,
[data-link-type="maybe"]::before {
content: "‘";
}
[data-link-type="property"]::after,
[data-link-type="propdesc"]::after,
[data-link-type="descriptor"]::after,
[data-link-type="value"]::after,
[data-link-type="function"]::after,
[data-link-type="at-rule"]::after,
[data-link-type="selector"]::after,
[data-link-type="maybe"]::after {
content: "’";
}
[data-link-type].production::before,
[data-link-type].production::after,
.prod [data-link-type]::before,
.prod [data-link-type]::after {
content: "";
}
[data-link-type=element],
[data-link-type=element-attr] {
font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;
font-size: .9em;
}
[data-link-type=element]::before { content: "<" }
[data-link-type=element]::after { content: ">" }
[data-link-type=biblio] {
white-space: pre;
}
</style>
<style>/* style-counters */
body {
counter-reset: example figure issue;
}
.issue {
counter-increment: issue;
}
.issue:not(.no-marker)::before {
content: "Issue " counter(issue);
}
.example {
counter-increment: example;
}
.example:not(.no-marker)::before {
content: "Example " counter(example);
}
.invalid.example:not(.no-marker)::before,
.illegal.example:not(.no-marker)::before {
content: "Invalid Example" counter(example);
}
figcaption {
counter-increment: figure;
}
figcaption:not(.no-marker)::before {
content: "Figure " counter(figure) " ";
}
</style>
<style>/* style-dfn-panel */
:root {
--dfnpanel-bg: #ddd;
--dfnpanel-text: var(--text);
}
.dfn-panel {
position: absolute;
z-index: 35;
width: 20em;
width: 300px;
height: auto;
max-height: 500px;
overflow: auto;
padding: 0.5em 0.75em;
font: small Helvetica Neue, sans-serif, Droid Sans Fallback;
background: var(--dfnpanel-bg);
color: var(--dfnpanel-text);
border: outset 0.2em;
white-space: normal; /* in case it's moved into a pre */
}
.dfn-panel:not(.on) { display: none; }
.dfn-panel * { margin: 0; padding: 0; text-indent: 0; }
.dfn-panel > b { display: block; }
.dfn-panel a { color: var(--dfnpanel-text); }
.dfn-panel a:not(:hover) { text-decoration: none !important; border-bottom: none !important; }
.dfn-panel > b + b { margin-top: 0.25em; }
.dfn-panel ul { padding: 0 0 0 1em; list-style: none; }
.dfn-panel li a {
white-space: pre;
display: inline-block;
max-width: calc(300px - 1.5em - 1em);
overflow: hidden;
text-overflow: ellipsis;
}
.dfn-panel.activated {
display: inline-block;
position: fixed;
left: .5em;
bottom: 2em;
margin: 0 auto;
max-width: calc(100vw - 1.5em - .4em - .5em);
max-height: 30vh;
}
.dfn-paneled[role="button"] { cursor: pointer; }
</style>
<style>/* style-issues */
a[href].issue-return {
float: right;
float: inline-end;
color: var(--issueheading-text);
font-weight: bold;
text-decoration: none;
}
</style>
<style>/* style-md-lists */
/* This is a weird hack for me not yet following the commonmark spec
regarding paragraph and lists. */
[data-md] > :first-child {
margin-top: 0;
}
[data-md] > :last-child {
margin-bottom: 0;
}
</style>
<style>/* style-selflinks */
:root {
--selflink-text: white;
--selflink-bg: gray;
--selflink-hover-text: black;
}
.heading, .issue, .note, .example, li, dt {
position: relative;
}
a.self-link {
position: absolute;
top: 0;
left: calc(-1 * (3.5rem - 26px));
width: calc(3.5rem - 26px);
height: 2em;
text-align: center;
border: none;
transition: opacity .2s;
opacity: .5;
}
a.self-link:hover {
opacity: 1;
}
.heading > a.self-link {
font-size: 83%;
}
.example > a.self-link,
.note > a.self-link,
.issue > a.self-link {
/* These blocks are overflow:auto, so positioning outside
doesn't work. */
left: auto;
right: 0;
}
li > a.self-link {
left: calc(-1 * (3.5rem - 26px) - 2em);
}
dfn > a.self-link {
top: auto;
left: auto;
opacity: 0;
width: 1.5em;
height: 1.5em;
background: var(--selflink-bg);
color: var(--selflink-text);
font-style: normal;
transition: opacity .2s, background-color .2s, color .2s;
}
dfn:hover > a.self-link {
opacity: 1;
}
dfn > a.self-link:hover {
color: var(--selflink-hover-text);
}
a.self-link::before { content: "¶"; }
.heading > a.self-link::before { content: "§"; }
dfn > a.self-link::before { content: "#"; }
</style>
<style>/* style-var-click-highlighting */
var { cursor: pointer; }
var.selected0 { background-color: #F4D200; box-shadow: 0 0 0 2px #F4D200; }
var.selected1 { background-color: #FF87A2; box-shadow: 0 0 0 2px #FF87A2; }
var.selected2 { background-color: #96E885; box-shadow: 0 0 0 2px #96E885; }
var.selected3 { background-color: #3EEED2; box-shadow: 0 0 0 2px #3EEED2; }
var.selected4 { background-color: #EACFB6; box-shadow: 0 0 0 2px #EACFB6; }
var.selected5 { background-color: #82DDFF; box-shadow: 0 0 0 2px #82DDFF; }
var.selected6 { background-color: #FFBCF2; box-shadow: 0 0 0 2px #FFBCF2; }
</style>
<body class="h-entry">
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
<h1>UI Events KeyboardEvent key Values</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#WD">W3C Working Draft</a>, <time class="dt-updated" datetime="2023-07-07">7 July 2023</time></p>
<details open>
<summary>More details about this document</summary>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
<dd><a class="u-url" href="https://www.w3.org/TR/2023/WD-uievents-key-20230707/">https://www.w3.org/TR/2023/WD-uievents-key-20230707/</a>
<dt>Latest published version:
<dd><a href="http://www.w3.org/TR/uievents-key/">http://www.w3.org/TR/uievents-key/</a>
<dt>Editor's Draft:
<dd><a href="https://w3c.github.io/uievents-key/">https://w3c.github.io/uievents-key/</a>
<dt>Previous Versions:
<dd><a href rel="prev"></a>
<dd><a href="http://www.w3.org/TR/2015/WD-uievents-key-20151215/" rel="prev">http://www.w3.org/TR/2015/WD-uievents-key-20151215/</a>
<dt>History:
<dd><a class="u-url" href="https://www.w3.org/standards/history/uievents-key">https://www.w3.org/standards/history/uievents-key</a>
<dt>Feedback:
<dd><a href="https://github.com/w3c/uievents-key/issues/">GitHub</a>
<dt class="editor">Editors:
<dd class="editor p-author h-card vcard"><a class="p-name fn u-email email" href="mailto:garykac@google.com">Gary Kacmarcik</a> (<span class="p-org org">Google</span>)
<dd class="editor p-author h-card vcard"><a class="p-name fn u-email email" href="mailto:travisleithead@hotmail.com">Travis Leithead</a> (<span class="p-org org">Invited Expert</span>)
<dt>Implementation Report:
<dd><a href="https://w3c.github.io/uievents-key/impl-report.html">https://w3c.github.io/uievents-key/impl-report.html</a>
</dl>
</div>
</details>
<div data-fill-with="warning"></div>
<p class="copyright" data-fill-with="copyright"><a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2023 <a href="https://www.w3.org/">World Wide Web Consortium</a>. <abbr title="World Wide Web Consortium">W3C</abbr><sup>®</sup> <a href="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document" rel="license">permissive document license</a> rules apply. </p>
<hr title="Separator for header">
</div>
<div class="p-summary" data-fill-with="abstract">
<h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2>
<p>This specification defines the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value">key attribute values</a> that must be used for <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#interface-keyboardevent" id="ref-for-interface-keyboardevent">KeyboardEvent</a></code>'s <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key">key</a></code> attribute, which is defined as part
of the UI Events Specification <a data-link-type="biblio" href="#biblio-uievents" title="UI Events">[UIEvents]</a>.</p>
</div>
<h2 class="no-num no-toc no-ref heading settled" id="sotd"><span class="content">Status of this document</span></h2>
<div data-fill-with="status">
<p> <em>This section describes the status of this document at the time of its publication. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="https://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at https://www.w3.org/TR/.</em> </p>
<p> This document was published by the <a href="https://www.w3.org/groups/wg/webapps">Web Applications Working Group</a> as a Working Draft. This document is intended to become a <abbr title="World Wide Web Consortium">W3C</abbr> Recommendation. </p>
<p></p>
<p> This document was published by the <a href="https://www.w3.org/groups/wg/webapps">Web Applications Working Group</a> as a Working Draft using the <a href="https://www.w3.org/2021/Process-20211102/#recs-and-notes">Recommendation
track</a>.
Feedback and comments on this specification are welcome. Please use <a href="https://github.com/w3c/uievents-key/issues">GitHub issues</a> Historical discussions can be found in the <a href="https://lists.w3.org/Archives/Public/public-webapps/">public-webapps@w3.org archives</a>. </p>
<p> Publication as a Working Draft does not imply endorsement by <abbr title="World Wide Web Consortium">W3C</abbr> and its Members. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress. </p>
<p> This document was produced by a group operating under the <a href="https://www.w3.org/Consortium/Patent-Policy-20200915/"><abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>. <abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a href="https://www.w3.org/2004/01/pp-impl/114929/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains <a href="https://www.w3.org/Consortium/Patent-Policy-20200915/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="https://www.w3.org/Consortium/Patent-Policy-20200915/#sec-Disclosure">section 6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>. </p>
<p>This document is governed by the <a href="https://www.w3.org/2021/Process-20211102/" id="w3c_process_revision">2 November 2021 W3C Process Document</a>. </p>
</div>
<div data-fill-with="at-risk"></div>
<nav data-fill-with="table-of-contents" id="toc">
<h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
<ol class="toc" role="directory">
<li>
<a href="#introduction"><span class="secno">1</span> <span class="content">Introduction</span></a>
<ol class="toc">
<li><a href="#style-conventions"><span class="secno">1.1</span> <span class="content">Stylistic Conventions</span></a>
</ol>
<li>
<a href="#key-attr-values"><span class="secno">2</span> <span class="content">Keyboard Event <code class="idl"><span>key</span></code> Attribute Values</span></a>
<ol class="toc">
<li>
<a href="#keys-unicode"><span class="secno">2.1</span> <span class="content">Unicode Values</span></a>
<ol class="toc">
<li><a href="#control"><span class="secno">2.1.1</span> <span class="content">Control Characters</span></a>
</ol>
<li>
<a href="#selecting-key-attribute-values"><span class="secno">2.2</span> <span class="content">Selecting <code class="idl"><span>key</span></code> Attribute Values</span></a>
<ol class="toc">
<li><a href="#h-clipboard-read"><span class="secno">2.2.1</span> <span class="content"><span>select an appropriate key attribute value</span></span></a>
</ol>
</ol>
<li>
<a href="#named-key-attribute-values"><span class="secno">3</span> <span class="content">Named <code class="idl"><span>key</span></code> Attribute Values</span></a>
<ol class="toc">
<li><a href="#keys-special"><span class="secno">3.1</span> <span class="content">Special Keys</span></a>
<li><a href="#keys-modifier"><span class="secno">3.2</span> <span class="content">Modifier Keys</span></a>
<li><a href="#keys-whitespace"><span class="secno">3.3</span> <span class="content">Whitespace Keys</span></a>
<li><a href="#keys-navigation"><span class="secno">3.4</span> <span class="content">Navigation Keys</span></a>
<li><a href="#keys-editing"><span class="secno">3.5</span> <span class="content">Editing Keys</span></a>
<li><a href="#keys-ui"><span class="secno">3.6</span> <span class="content">UI Keys</span></a>
<li><a href="#keys-device"><span class="secno">3.7</span> <span class="content">Device Keys</span></a>
<li><a href="#keys-composition"><span class="secno">3.8</span> <span class="content">IME and Composition Keys</span></a>
<li><a href="#keys-function"><span class="secno">3.9</span> <span class="content">General-Purpose Function Keys</span></a>
<li><a href="#keys-multimedia"><span class="secno">3.10</span> <span class="content">Multimedia Keys</span></a>
<li><a href="#keys-multimedia-numpad"><span class="secno">3.11</span> <span class="content">Multimedia Numpad Keys</span></a>
<li><a href="#keys-audio"><span class="secno">3.12</span> <span class="content">Audio Keys</span></a>
<li><a href="#keys-speech"><span class="secno">3.13</span> <span class="content">Speech Keys</span></a>
<li><a href="#keys-apps"><span class="secno">3.14</span> <span class="content">Application Keys</span></a>
<li><a href="#keys-browser"><span class="secno">3.15</span> <span class="content">Browser Keys</span></a>
<li><a href="#keys-mobile"><span class="secno">3.16</span> <span class="content">Mobile Phone Keys</span></a>
<li><a href="#keys-tv"><span class="secno">3.17</span> <span class="content">TV Keys</span></a>
<li><a href="#keys-media-controller"><span class="secno">3.18</span> <span class="content">Media Controller Keys</span></a>
</ol>
<li><a href="#accessibility"><span class="secno">4</span> <span class="content">Accessibility</span></a>
<li><a href="#i18n"><span class="secno">5</span> <span class="content">I18n</span></a>
<li><a href="#security"><span class="secno">6</span> <span class="content">Security Considerations</span></a>
<li><a href="#privacy"><span class="secno">7</span> <span class="content">Privacy Considerations</span></a>
<li><a href="#acknowledgements-contributors"><span class="secno">8</span> <span class="content">Acknowledgements</span></a>
<li>
<a href="#w3c-conformance"><span class="secno"></span> <span class="content">Conformance</span></a>
<ol class="toc">
<li><a href="#w3c-conventions"><span class="secno"></span> <span class="content">Document conventions</span></a>
<li><a href="#w3c-conformant-algorithms"><span class="secno"></span> <span class="content">Conformant Algorithms</span></a>
</ol>
<li>
<a href="#index"><span class="secno"></span> <span class="content">Index</span></a>
<ol class="toc">
<li><a href="#index-defined-here"><span class="secno"></span> <span class="content">Terms defined by this specification</span></a>
<li><a href="#index-defined-elsewhere"><span class="secno"></span> <span class="content">Terms defined by reference</span></a>
</ol>
<li>
<a href="#references"><span class="secno"></span> <span class="content">References</span></a>
<ol class="toc">
<li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a>
<li><a href="#informative"><span class="secno"></span> <span class="content">Informative References</span></a>
</ol>
</ol>
</nav>
<main>
<h2 class="heading settled" data-level="1" id="introduction"><span class="secno">1. </span><span class="content">Introduction</span><a class="self-link" href="#introduction"></a></h2>
<p>This document specifies the set of valid <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①">key attribute values</a> that MUST be used
in the <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#interface-keyboardevent" id="ref-for-interface-keyboardevent①">KeyboardEvent</a></code>'s <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key①">key</a></code> attribute to encode the key’s
meaning. Note that the <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key②">key</a></code> value for a particular key will differ
based on the user’s current locale setting. For a value that is based only on the key’s
physical location on the keyboard and does not vary based on locale, see <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-code" id="ref-for-dom-keyboardevent-code">code</a></code> described in <a data-link-type="biblio" href="#biblio-uievents-code" title="UI Events KeyboardEvent code Values">[UIEvents-Code]</a>.</p>
<h3 class="heading settled" data-level="1.1" id="style-conventions"><span class="secno">1.1. </span><span class="content">Stylistic Conventions</span><a class="self-link" href="#style-conventions"></a></h3>
<p>This specification uses the following conventions:</p>
<ul>
<li data-md>
<p>The <em><a data-link-type="dfn" href="http://www.w3.org/TR/uievents/#key-legends" id="ref-for-key-legends">key cap</a></em> printed on a key is shown as <code class="keycap">↓</code>, <code class="keycap">=</code> or <code class="keycap">Q</code>. This is used to refer to a
key from the user’s perspective without regard for the <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key③">key</a></code> and <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-code" id="ref-for-dom-keyboardevent-code①">code</a></code> values in the
generated <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#interface-keyboardevent" id="ref-for-interface-keyboardevent②">KeyboardEvent</a></code>.</p>
<li data-md>
<p>Glyphs representing character are shown as: <code class="glyph">"a"</code>, <code class="glyph">"é"</code>, <code class="glyph">"ر"</code>, <code class="glyph">"字"</code>.</p>
<li data-md>
<p>Unicode <a data-link-type="biblio" href="#biblio-unicode" title="The Unicode Standard">[Unicode]</a> code points are shown as: <code class="unicode">U+003D</code>.</p>
<li data-md>
<p>Valid <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value②">key attribute values</a> (i.e., the value of
a <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#interface-keyboardevent" id="ref-for-interface-keyboardevent③">KeyboardEvent</a></code>'s <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key④">key</a></code> attribute) are shown as: <code class="key">"<a href="#key-ArrowDown">ArrowDown</a>"</code>, <code class="key">"="</code>, <code class="key">"q"</code> or <code class="key">"Q"</code>.</p>
<li data-md>
<p>Valid <a data-link-type="dfn" href="http://www.w3.org/TR/uievents-key/#key-value-tables" id="ref-for-key-value-tables">key code attribute values</a> (i.e., the
value of a <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#interface-keyboardevent" id="ref-for-interface-keyboardevent④">KeyboardEvent</a></code>'s <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-code" id="ref-for-dom-keyboardevent-code②">code</a></code> attribute) are shown as: <code class="code">"ArrowDown"</code>, <code class="code">"Equal"</code> or <code class="code">"KeyQ"</code>.</p>
</ul>
<h2 class="heading settled" data-level="2" id="key-attr-values"><span class="secno">2. </span><span class="content">Keyboard Event <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key⑤">key</a></code> Attribute Values</span><a class="self-link" href="#key-attr-values"></a></h2>
<p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="key-attribute-value">key attribute value</dfn> is defined as being a <code>DOMString</code> that
contains one of the following:</p>
<ul>
<li data-md>
<p>A <a data-link-type="dfn" href="#key-string" id="ref-for-key-string">key string</a> that corresponds to
the character typed by the user, taking into account the user’s current locale
setting, modifier state, and any system-level keyboard mapping overrides that are
in effect.</p>
<li data-md>
<p>A <a data-link-type="dfn" href="#named-key-attribute-value" id="ref-for-named-key-attribute-value">named key attribute value</a>, as defined by the tables in this document.</p>
</ul>
<p>A <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value③">key attribute value</a> MUST always contain a value that falls into one of these
two categories (even if the value is <code class="key">"<a href="#key-Unidentified">Unidentified</a>"</code>).</p>
<p>It is acceptable for multiple keys on a keyboard to generate the same <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value④">key attribute value</a>. For example, on an EN-US keyboard layout, the keys on the
numeric keypad (e.g., the keypad <code class="keycap">1</code> key) will generate the same <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value⑤">key attribute values</a> as their non-keypad counterparts (e.g., the <code class="keycap">1</code> key
in the main part of the keyboard). The <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#interface-keyboardevent" id="ref-for-interface-keyboardevent⑤">KeyboardEvent</a></code>'s <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-location" id="ref-for-dom-keyboardevent-location">location</a></code> attribute can be used to determine if a key
originated from the numeric keypad.</p>
<h3 class="heading settled" data-level="2.1" id="keys-unicode"><span class="secno">2.1. </span><span class="content">Unicode Values</span><a class="self-link" href="#keys-unicode"></a></h3>
<p>Almost every Unicode character can be used as a valid <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value⑥">key attribute value</a>, but
there is a small set of Unicode characters which MUST NOT be used.
We introduce the concept of a <a data-link-type="dfn" href="#key-string" id="ref-for-key-string①">key string</a> to identify the set of
Unicode strings that are appropriate for use as a <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value⑦">key attribute value</a>.</p>
<p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="key-string">key string</dfn> is a string containing a 0 or 1 <a data-link-type="dfn" href="#non-control-character" id="ref-for-non-control-character">non-control characters</a> ("base" characters) followed by 0 or more <a data-link-type="dfn" href="#combining-character" id="ref-for-combining-character">combining characters</a>. The string MUST
be in Normalized Form C (NFC) as described in <a data-link-type="biblio" href="#biblio-uax15" title="Unicode Normalization Forms">[UAX15]</a>.</p>
<p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="non-control-character">non-control character</dfn> is any valid Unicode character except
those that are part of the "Other, Control" ("Cc") General Category.</p>
<p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="combining-character">combining character</dfn> is any valid Unicode character in the
"Mark, Spacing Combining" ("Mc") General Category or with a non-zero
Combining Class.</p>
<div class="example" id="example-79479508">
<a class="self-link" href="#example-79479508"></a> The following are some examples of simple <a data-link-type="dfn" href="#key-string" id="ref-for-key-string②">key strings</a>:
<ul>
<li data-md>
<p><code class="key">"a"</code>, <code class="key">"A"</code>, <code class="key">"b"</code>, <code class="key">"B"</code>, ..., <code class="key">"å"</code>, <code class="key">"é"</code>, <code class="key">"ü"</code>, <code class="key">"ñ"</code></p>
<li data-md>
<p><code class="key">"@"</code>, <code class="key">"%"</code>, <code class="key">"$"</code>, <code class="key">"*"</code>, ..., <code class="key">"0"</code>, <code class="key">"1"</code>, <code class="key">"2"</code></p>
<li data-md>
<p><code class="key">"あ"</code>, <code class="key">"日"</code>, <code class="key">"中"</code>, ..., <code class="key">"一"</code>, <code class="key">"二"</code>, <code class="key">"三"</code></p>
<li data-md>
<p><code class="key">"ا"</code>, <code class="key">"ب"</code>, <code class="key">"ة"</code>, <code class="key">"ت"</code>, ..., <code class="key">"١"</code>, <code class="key">"٢"</code>, <code class="key">"٣"</code></p>
<li data-md>
<p><code class="key">"а"</code>, <code class="key">"б"</code>, <code class="key">"в"</code>, <code class="key">"г"</code></p>
<li data-md>
<p><code class="key">"±"</code>, <code class="key">"ʶ"</code>, <code class="key">"϶"</code>, <code class="key">"൹"</code>, <code class="key">"℉"</code></p>
</ul>
</div>
<div class="example" id="example-c4dc2f36">
<a class="self-link" href="#example-c4dc2f36"></a> With the exception of <code class="keycap">Tab</code> and <code class="keycap">Enter</code> (see <a href="#control">§ 2.1.1 Control Characters</a>),
all non-control whitespace Unicode characters are considered to
be valid <a data-link-type="dfn" href="#key-string" id="ref-for-key-string③">key strings</a>.
<ul>
<li data-md>
<p><code class="key">" "</code> = <code class="unicode">U+0020</code> Space</p>
<li data-md>
<p><code class="key">" "</code> = <code class="unicode">U+00A0</code> No-Break Space</p>
<li data-md>
<p><code class="key">" "</code> = <code class="unicode">U+2009</code> Thin Space</p>
<li data-md>
<p><code class="key">" "</code> = <code class="unicode">U+3000</code> Ideographic Space</p>
</ul>
</div>
<div class="example" id="example-bad98e74">
<a class="self-link" href="#example-bad98e74"></a> The following are some examples of <a data-link-type="dfn" href="#key-string" id="ref-for-key-string④">key strings</a> with <a data-link-type="dfn" href="#combining-character" id="ref-for-combining-character①">combining characters</a>:
<ul>
<li data-md>
<p><code class="key">"ô"</code> = <code class="unicode">U+00F4</code> (NOT "o" + " ̂" (<code class="unicode">U+006F</code> <code class="unicode">U+0302</code>)
because pre-composed characters must be used if available)</p>
<li data-md>
<p><code class="key">"ḍ̇"</code> = <code class="unicode">U+1E0D</code> + <code class="unicode">U+0307</code> (NOT "d" + " ̣" + " ̇" (<code class="unicode">U+0064</code> <code class="unicode">U+0323</code> <code class="unicode">U+0307</code>)
because precomposed characters must be used if available,
and NOT "ḋ" + " ̣" (<code class="unicode">U+1E0B</code> <code class="unicode">U+0323</code>)
because accents must be ordered before substituting with a precomposed version)</p>
</ul>
</div>
<h4 class="heading settled" data-level="2.1.1" id="control"><span class="secno">2.1.1. </span><span class="content">Control Characters</span><a class="self-link" href="#control"></a></h4>
<p>A small number of characters in the Unicode "Cc" General Category are
supported as <a data-link-type="dfn" href="#named-key-attribute-value" id="ref-for-named-key-attribute-value①">named key attribute values</a>. These named values are as
follows:</p>
<ul>
<li data-md>
<p><code class="unicode">U+0008</code> <code class="key">"<a href="#key-Backspace">Backspace</a>"</code></p>
<li data-md>
<p><code class="unicode">U+0009</code> <code class="key">"<a href="#key-Tab">Tab</a>"</code></p>
<li data-md>
<p><code class="unicode">U+000D</code> <code class="key">"<a href="#key-Enter">Enter</a>"</code></p>
<li data-md>
<p><code class="unicode">U+001B</code> <code class="key">"<a href="#key-Escape">Escape</a>"</code></p>
<li data-md>
<p><code class="unicode">U+007F</code> <code class="key">"<a href="#key-Delete">Delete</a>"</code></p>
</ul>
<h3 class="heading settled" data-level="2.2" id="selecting-key-attribute-values"><span class="secno">2.2. </span><span class="content">Selecting <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key⑥">key</a></code> Attribute Values</span><a class="self-link" href="#selecting-key-attribute-values"></a></h3>
<p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="glyph-modifier-key">glyph modifier key</dfn> is any of the following modifier keys: <code class="keycap">Shift</code>, <code class="keycap">CapsLock</code> or <code class="keycap">AltGr</code>.</p>
<div class="algorithm" data-algorithm="clipboard-read">
<h4 class="heading settled" data-level="2.2.1" id="h-clipboard-read"><span class="secno">2.2.1. </span><span class="content"><dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="select-an-appropriate-key-attribute-value">select an appropriate key attribute value</dfn></span><a class="self-link" href="#h-clipboard-read"></a></h4>
To <a data-link-type="dfn" href="#select-an-appropriate-key-attribute-value" id="ref-for-select-an-appropriate-key-attribute-value">select an appropriate key attribute value</a> to store in a <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#interface-keyboardevent" id="ref-for-interface-keyboardevent⑥">KeyboardEvent</a></code>'s <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key⑦">key</a></code> attribute, run these steps:
<ol>
<li data-md>
<p>Let <var>key</var> be a DOMString initially set to <code class="key">"<a href="#key-Unidentified">Unidentified</a>"</code>.</p>
<li data-md>
<p>If there exists an appropriate <a data-link-type="dfn" href="#named-key-attribute-value" id="ref-for-named-key-attribute-value②">named key attribute value</a> for this
key event, then</p>
<ol>
<li data-md>
<p>Set <var>key</var> to that <a data-link-type="dfn" href="#named-key-attribute-value" id="ref-for-named-key-attribute-value③">named key attribute value</a>.</p>
</ol>
<li data-md>
<p>Else, if the key event generates a valid <a data-link-type="dfn" href="#key-string" id="ref-for-key-string⑤">key string</a>, then</p>
<ol>
<li data-md>
<p>Set <var>key</var> to that <a data-link-type="dfn" href="#key-string" id="ref-for-key-string⑥">key string</a> value.</p>
</ol>
<li data-md>
<p>Else, if the key event has any modifier keys other than <a data-link-type="dfn" href="#glyph-modifier-key" id="ref-for-glyph-modifier-key">glyph modifier keys</a>, then</p>
<ol>
<li data-md>
<p>Set <var>key</var> to the <a data-link-type="dfn" href="#key-string" id="ref-for-key-string⑦">key string</a> that would have been generated
by this event if it had been typed with all modifer keys removed
except for <a data-link-type="dfn" href="#glyph-modifier-key" id="ref-for-glyph-modifier-key①">glyph modifier keys</a>.</p>
</ol>
<li data-md>
<p>Return <var>key</var> as the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value⑧">key attribute value</a> for this key event.</p>
</ol>
<p class="example" id="example-739eafdc"><a class="self-link" href="#example-739eafdc"></a> On a standard US keyboard, the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value⑨">key attribute value</a> for the key labeled <code class="keycap">Q</code> is <code class="key">"q"</code> (or <code class="key">"Q"</code> if the <code class="keycap">Shift</code> modifier
key is also held). </p>
<p class="example" id="example-3bffd67f"><a class="self-link" href="#example-3bffd67f"></a> On a standard US keyboard, <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①⓪">key attribute value</a> for <code class="keycap">Control</code> + <code class="keycap">Q</code> is <code class="key">"q"</code>. </p>
<p class="example" id="example-58aee3cc"><a class="self-link" href="#example-58aee3cc"></a> On a US keyboard with a right-handed Dvorak key mapping, the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①①">key attribute value</a> for the key labeled <code class="keycap">Q</code> is <code class="key">"5"</code> (or <code class="key">"%"</code> with <code class="keycap">Shift</code> modifier). </p>
<p class="example" id="example-d80a9c60"><a class="self-link" href="#example-d80a9c60"></a> On the same US Dvorak keyboard layout as the previous example, the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①②">key attribute value</a> for <code class="keycap">Control</code> + <code class="keycap">Q</code> is <code class="key">"5"</code>. </p>
<p class="example" id="example-dfa8e0dc"><a class="self-link" href="#example-dfa8e0dc"></a> On a Bolnagri keyboard layout, the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①③">key attribute value</a> for the
key labeled <code class="keycap">Q</code> is a string containing the single Unicode
character <code class="unicode">U+200C</code> (ZWNJ or Zero Width Non-Joining Space). </p>
<p class="example" id="example-d8c69726"><a class="self-link" href="#example-d8c69726"></a> On a French PC keyboard with a standard French mapping, the <code class="keycap">^</code> key acts as a <a data-link-type="dfn" href="http://www.w3.org/TR/uievents/#dead-key" id="ref-for-dead-key">dead key</a> for the combining circumflex diacritical mark.
The <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①④">key attribute value</a> for this keyboard event is <code class="key">"<a href="#key-Dead">Dead</a>"</code>. </p>
<p class="example" id="example-17cab0f7"><a class="self-link" href="#example-17cab0f7"></a> Also on a French keyboard with a standard French mapping, the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①⑤">key attribute value</a> for the <code class="keycap">é</code> key (which corresponds to the <code class="keycap">2</code> key on a US keyboard) is <code class="key">"é"</code> (<code class="unicode">U+00E9</code>). </p>
<p class="example" id="example-b2f106ed"><a class="self-link" href="#example-b2f106ed"></a> On a Korean PC keyboard with a standard Korean mapping, the primary
function of the <code class="keycap">Ha/En</code> key is to switch between Hangul and English
input. There is an entry for this key as a <a data-link-type="dfn" href="#named-key-attribute-value" id="ref-for-named-key-attribute-value④">named key attribute value</a>, <code class="key">"<a href="#key-HangulMode">HangulMode</a>"</code>, so that should be used as the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①⑥">key attribute value</a>. </p>
</div>
<h2 class="heading settled" data-level="3" id="named-key-attribute-values"><span class="secno">3. </span><span class="content">Named <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key⑧">key</a></code> Attribute Values</span><a class="self-link" href="#named-key-attribute-values"></a></h2>
<p>A <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="named-key-attribute-value">named key attribute value</dfn> is any of the values given in the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①⑦">key attribute value</a> column of any of the tables in this section of the
specification.</p>
<p>The <a data-link-type="dfn" href="#named-key-attribute-value" id="ref-for-named-key-attribute-value⑤">named key attribute values</a> defined here are based
in part on the sets of keycodes from
the <code>java.awt.event.KeyEvent</code> interface of the Java Platform,
Standard Edition 6 API Specification <a data-link-type="biblio" href="#biblio-keyeventjava" title="Java™ Platform, Standard Edition 6 API Specification, Class java.awt.events.KeyEvent">[KeyEventJava]</a>, and the <code>System.Windows.Forms.Keys</code> key enumeration of the Microsoft .NET
Framework 4.0 Class Library <a data-link-type="biblio" href="#biblio-keysnet" title=".NET Framework 4.5 Class Library, Keys Enumeration">[KeysNet]</a>. Additional information in this spec
comes from Microsoft’s WM_APPCOMMAND messages <a data-link-type="biblio" href="#biblio-wmappcommand" title="MSDN WM_APPCOMMAND message">[WmAppCommand]</a>, and other
more specialized specifications as noted in this document.</p>
<p>A conforming implementation of the <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#interface-keyboardevent" id="ref-for-interface-keyboardevent⑦">KeyboardEvent</a></code> interface MUST support
this set of values for use in the <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key⑨">key</a></code> attributes,
although not all values may be available on all platforms or devices.</p>
<p>Future versions of this specification may include <code class="idl"><a data-link-type="idl" href="http://www.w3.org/TR/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key①⓪">key</a></code> values not included
here, which have become common since the publication of this specification.</p>
<p class="note" role="note"> Note: While every attempt has been made to make this list of values as complete as possible,
new values will periodically need to be defined as new input devices are introduced.
Rather than allowing user agents to define their own <a data-link-type="dfn" href="#named-key-attribute-value" id="ref-for-named-key-attribute-value⑥">named key attribute values</a> (which are unlikely to be consistent across multiple user agents), bugs SHOULD be
filed so that this specification can be updated. </p>
<h3 class="heading settled" data-level="3.1" id="keys-special"><span class="secno">3.1. </span><span class="content">Special Keys</span><a class="self-link" href="#keys-special"></a></h3>
<p>Implementations that are unable to identify a key MUST use <code class="key">"<a href="#key-Unidentified">Unidentified</a>"</code> as the <a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①⑧">key attribute value</a>.</p>
<table class="data-table full-width" id="key-table-general">
<thead>
<tr>
<th style="width:20%"><a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value①⑨">key attribute value</a>
<th style="width:10%">Required
<th style="width:70%">Typical Usage (Non-normative)
<tbody>
<tr>
<td class="key-table-key"><code class="key" id="key-Unidentified">"Unidentified"</code>
<td class="key-table-required">Yes
<td>This key value is used when an implementation is unable to identify another key value, due to either hardware,
platform, or software constraints.
</table>
<p class="note" role="note"> Conforming implementations MUST only use <code class="key">"<a href="#key-Unidentified">Unidentified</a>"</code> as a key value
when there is no way for the implementation to detect the key value.
Exposing only this value for all keyboard events MUST NOT indicate a conforming
implementation. </p>
<h3 class="heading settled" data-level="3.2" id="keys-modifier"><span class="secno">3.2. </span><span class="content">Modifier Keys</span><a class="self-link" href="#keys-modifier"></a></h3>
<table class="data-table full-width" id="key-table-modifier">
<thead>
<tr>
<th style="width:20%"><a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value②⓪">key attribute value</a>
<th style="width:10%">Required
<th style="width:70%">Typical Usage (Non-normative)
<tbody>
<tr>
<td class="key-table-key"><code class="key" id="key-Alt">"Alt"</code>
<td class="key-table-required">Yes
<td>The <code class="keycap">Alt</code> (Alternative) key.<br> This key enables the alternate modifier function for interpreting concurrent or subsequent keyboard input.<br> This key value is also used for the Apple <code class="keycap">Option</code> key.
<tr>
<td class="key-table-key"><code class="key" id="key-AltGraph">"AltGraph"</code>
<td class="key-table-required">Yes
<td>The Alternate Graphics (<code class="keycap">AltGr</code> or <code class="keycap">AltGraph</code>) key. This key is used enable the ISO Level 3 shift modifier (the standard <code class="keycap">Shift</code> key is the level 2 modifier).
See <a data-link-type="biblio" href="#biblio-iso9995-1" title="ISO/IEC 9995-1:2009 Information technology -- Keyboard layouts for text and office systems -- Part 1: General principles governing keyboard layouts">[ISO9995-1]</a>.
<tr>
<td class="key-table-key"><code class="key" id="key-CapsLock">"CapsLock"</code>
<td class="key-table-required">Yes
<td>The <code class="keycap">Caps Lock</code> (Capital) key. Toggle capital character lock function for interpreting subsequent keyboard input event.
<tr>
<td class="key-table-key"><code class="key" id="key-Control">"Control"</code>
<td class="key-table-required">Yes
<td>The <code class="keycap">Control</code> or <code class="keycap">Ctrl</code> key, to enable control modifier function for interpreting concurrent or subsequent keyboard input.
<tr>
<td class="key-table-key"><code class="key" id="key-Fn">"Fn"</code>
<td class="key-table-required">No
<td>The Function switch <code class="keycap">Fn</code> key.<br> Activating this key simultaneously with another key changes that key’s value to an alternate character or function.
This key is often handled directly in the keyboard hardware and does not usually generate key events.
<tr>
<td class="key-table-key"><code class="key" id="key-FnLock">"FnLock"</code>
<td class="key-table-required">No
<td>The Function-Lock (<code class="keycap">FnLock</code> or <code class="keycap">F-Lock</code>) key. Activating this key switches the mode of the keyboard to changes some keys' values to an alternate character or function.
This key is often handled directly in the keyboard hardware and does not usually generate key events.
<tr>
<td class="key-table-key"><code class="key" id="key-Meta">"Meta"</code>
<td class="key-table-required">Yes
<td>The <code class="keycap">Meta</code> key, to enable meta modifier function for interpreting concurrent or subsequent keyboard input. This key value is used for the <q>Windows Logo</q> key and the Apple <code class="keycap">Command</code> or <code class="keycap">⌘</code> key.
<tr>
<td class="key-table-key"><code class="key" id="key-NumLock">"NumLock"</code>
<td class="key-table-required">Yes
<td>The <code class="keycap">NumLock</code> or Number Lock key, to toggle numpad mode function for interpreting subsequent keyboard input.
<tr>
<td class="key-table-key"><code class="key" id="key-ScrollLock">"ScrollLock"</code>
<td class="key-table-required">Yes
<td>The <code class="keycap">Scroll Lock</code> key, to toggle between scrolling and cursor movement modes.
<tr>
<td class="key-table-key"><code class="key" id="key-Shift">"Shift"</code>
<td class="key-table-required">Yes
<td>The <code class="keycap">Shift</code> key, to enable shift modifier function for interpreting concurrent or subsequent keyboard input.
<tr>
<td class="key-table-key"><code class="key" id="key-Symbol">"Symbol"</code>
<td class="key-table-required">No
<td>The Symbol modifier key (used on some virtual keyboards).
<tr>
<td class="key-table-key"><code class="key" id="key-SymbolLock">"SymbolLock"</code>
<td class="key-table-required">No
<td>The Symbol Lock key.
</table>
<p>Legacy modifier keys:</p>
<table class="data-table full-width" id="key-table-modifier-legacy">
<thead>
<tr>
<th style="width:20%"><a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value②①">key attribute value</a>
<th style="width:10%">Required
<th style="width:70%">Typical Usage (Non-normative)
<tbody>
<tr>
<td class="key-table-key"><code class="key" id="key-Hyper">"Hyper"</code>
<td class="key-table-required">No
<td>The <code class="keycap">Hyper</code> key.
<tr>
<td class="key-table-key"><code class="key" id="key-Super">"Super"</code>
<td class="key-table-required">No
<td>The <code class="keycap">Super</code> key.
</table>
<h3 class="heading settled" data-level="3.3" id="keys-whitespace"><span class="secno">3.3. </span><span class="content">Whitespace Keys</span><a class="self-link" href="#keys-whitespace"></a></h3>
<table class="data-table full-width" id="key-table-whitespace">
<thead>
<tr>
<th style="width:20%"><a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value②②">key attribute value</a>
<th style="width:10%">Required
<th style="width:70%">Typical Usage (Non-normative)
<tbody>
<tr>
<td class="key-table-key"><code class="key" id="key-Enter">"Enter"</code>
<td class="key-table-required">Yes
<td>The <code class="keycap">Enter</code> or <code class="keycap">↵</code> key, to activate current selection or accept current input.<br> This key value is also used for the <code class="keycap">Return</code> (Macintosh numpad) key.<br> This key value is also used for the Android <code class="android">KEYCODE_DPAD_CENTER</code>.
<tr>
<td class="key-table-key"><code class="key" id="key-Tab">"Tab"</code>
<td class="key-table-required">Yes
<td>The Horizontal Tabulation <code class="keycap">Tab</code> key.
</table>
<p class="note" role="note">The space or spacebar key is encoded as <code class="key">" "</code>.</p>
<h3 class="heading settled" data-level="3.4" id="keys-navigation"><span class="secno">3.4. </span><span class="content">Navigation Keys</span><a class="self-link" href="#keys-navigation"></a></h3>
<table class="data-table full-width" id="key-table-navigation">
<thead>
<tr>
<th style="width:20%"><a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value②③">key attribute value</a>
<th style="width:10%">Required
<th style="width:70%">Typical Usage (Non-normative)
<tbody>
<tr>
<td class="key-table-key"><code class="key" id="key-ArrowDown">"ArrowDown"</code>
<td class="key-table-required">Yes
<td>The down arrow key, to navigate or traverse downward. (<code class="android">KEYCODE_DPAD_DOWN</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-ArrowLeft">"ArrowLeft"</code>
<td class="key-table-required">Yes
<td>The left arrow key, to navigate or traverse leftward. (<code class="android">KEYCODE_DPAD_LEFT</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-ArrowRight">"ArrowRight"</code>
<td class="key-table-required">Yes
<td>The right arrow key, to navigate or traverse rightward. (<code class="android">KEYCODE_DPAD_RIGHT</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-ArrowUp">"ArrowUp"</code>
<td class="key-table-required">Yes
<td>The up arrow key, to navigate or traverse upward. (<code class="android">KEYCODE_DPAD_UP</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-End">"End"</code>
<td class="key-table-required">Yes
<td>The End key, used with keyboard entry to go to the end of content (<code class="android">KEYCODE_MOVE_END</code>).
<tr>
<td class="key-table-key"><code class="key" id="key-Home">"Home"</code>
<td class="key-table-required">Yes
<td>The Home key, used with keyboard entry, to go to start of content (<code class="android">KEYCODE_MOVE_HOME</code>).<br> For the mobile phone <code class="keycap">Home</code> key (which goes to the phone’s main screen), use <code class="key">"<a href="#key-GoHome">GoHome</a>"</code>.
<tr>
<td class="key-table-key"><code class="key" id="key-PageDown">"PageDown"</code>
<td class="key-table-required">Yes
<td>The Page Down key, to scroll down or display next page of content.
<tr>
<td class="key-table-key"><code class="key" id="key-PageUp">"PageUp"</code>
<td class="key-table-required">Yes
<td>The Page Up key, to scroll up or display previous page of content.
</table>
<h3 class="heading settled" data-level="3.5" id="keys-editing"><span class="secno">3.5. </span><span class="content">Editing Keys</span><a class="self-link" href="#keys-editing"></a></h3>
<table class="data-table full-width" id="key-table-editing">
<thead>
<tr>
<th style="width:20%"><a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value②④">key attribute value</a>
<th style="width:10%">Required
<th style="width:70%">Typical Usage (Non-normative)
<tbody>
<tr>
<td class="key-table-key"><code class="key" id="key-Backspace">"Backspace"</code>
<td class="key-table-required">Yes
<td>The Backspace key. This key value is also used for the key labeled <code class="keycap">Delete</code> on MacOS keyboards.
<tr>
<td class="key-table-key"><code class="key" id="key-Clear">"Clear"</code>
<td class="key-table-required">No
<td>Remove the currently selected input.
<tr>
<td class="key-table-key"><code class="key" id="key-Copy">"Copy"</code>
<td class="key-table-required">No
<td>Copy the current selection. (<code class="appcommand">APPCOMMAND_COPY</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-CrSel">"CrSel"</code>
<td class="key-table-required">No
<td>The Cursor Select (Crsel) key.
<tr>
<td class="key-table-key"><code class="key" id="key-Cut">"Cut"</code>
<td class="key-table-required">No
<td>Cut the current selection. (<code class="appcommand">APPCOMMAND_CUT</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-Delete">"Delete"</code>
<td class="key-table-required">Yes
<td>The Delete (Del) Key. This key value is also used for the key labeled <code class="keycap">Delete</code> on MacOS keyboards when modified by the <code class="keycap">Fn</code> key.
<tr>
<td class="key-table-key"><code class="key" id="key-EraseEof">"EraseEof"</code>
<td class="key-table-required">No
<td>The Erase to End of Field key. This key deletes all characters from the current cursor position to the end of the current field.
<tr>
<td class="key-table-key"><code class="key" id="key-ExSel">"ExSel"</code>
<td class="key-table-required">No
<td>The Extend Selection (Exsel) key.
<tr>
<td class="key-table-key"><code class="key" id="key-Insert">"Insert"</code>
<td class="key-table-required">Yes
<td>The Insert (Ins) key, to toggle between text modes for insertion or overtyping. (<code class="android">KEYCODE_INSERT</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-Paste">"Paste"</code>
<td class="key-table-required">No
<td>The Paste key. (<code class="appcommand">APPCOMMAND_PASTE</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-Redo">"Redo"</code>
<td class="key-table-required">No
<td>Redo the last action. (<code class="appcommand">APPCOMMAND_REDO</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-Undo">"Undo"</code>
<td class="key-table-required">No
<td>Undo the last action. (<code class="appcommand">APPCOMMAND_UNDO</code>)
</table>
<h3 class="heading settled" data-level="3.6" id="keys-ui"><span class="secno">3.6. </span><span class="content">UI Keys</span><a class="self-link" href="#keys-ui"></a></h3>
<table class="data-table full-width" id="key-table-ui">
<thead>
<tr>
<th style="width:20%"><a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value②⑤">key attribute value</a>
<th style="width:10%">Required
<th style="width:70%">Typical Usage (Non-normative)
<tbody>
<tr>
<td class="key-table-key"><code class="key" id="key-Accept">"Accept"</code>
<td class="key-table-required">No
<td>The Accept (Commit, OK) key. Accept current option or input method sequence conversion.
<tr>
<td class="key-table-key"><code class="key" id="key-Again">"Again"</code>
<td class="key-table-required">No
<td>The Again key, to redo or repeat an action.
<tr>
<td class="key-table-key"><code class="key" id="key-Attn">"Attn"</code>
<td class="key-table-required">No
<td>The Attention (Attn) key.
<tr>
<td class="key-table-key"><code class="key" id="key-Cancel">"Cancel"</code>
<td class="key-table-required">No
<td>The Cancel key.
<tr>
<td class="key-table-key"><code class="key" id="key-ContextMenu">"ContextMenu"</code>
<td class="key-table-required">Yes
<td>Show the application’s context menu. This key is commonly found between the right <code class="keycap">Meta</code> key and the right <code class="keycap">Control</code> key.
<tr>
<td class="key-table-key"><code class="key" id="key-Escape">"Escape"</code>
<td class="key-table-required">Yes
<td>The <code class="keycap">Esc</code> key. This key was originally used to initiate an escape sequence, but is now more generally used to exit or "escape" the current context, such as closing a dialog
or exiting full screen mode.
<tr>
<td class="key-table-key"><code class="key" id="key-Execute">"Execute"</code>
<td class="key-table-required">No
<td>The Execute key.
<tr>
<td class="key-table-key"><code class="key" id="key-Find">"Find"</code>
<td class="key-table-required">No
<td>Open the Find dialog. (<code class="appcommand">APPCOMMAND_FIND</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-Help">"Help"</code>
<td class="key-table-required">Yes
<td>Open a help dialog or toggle display of help information. (<code class="appcommand"><code class="appcommand">APPCOMMAND_HELP</code></code>, <code class="android"><code class="android">KEYCODE_HELP</code></code>)
<tr>
<td class="key-table-key"><code class="key" id="key-Pause">"Pause"</code>
<td class="key-table-required">Yes
<td>
Pause the current state or application (as appropriate).
<p class="note" role="note">Do not use this value for the <code class="keycap">Pause</code> button on media controllers. Use <code class="key">"<a href="#key-MediaPause">MediaPause</a>"</code> instead.</p>
<tr>
<td class="key-table-key"><code class="key" id="key-Play">"Play"</code>
<td class="key-table-required">No
<td>
Play or resume the current state or application (as appropriate).
<p class="note" role="note">Do not use this value for the <code class="keycap">Play</code> button on media controllers. Use <code class="key">"<a href="#key-MediaPlay">MediaPlay</a>"</code> instead.</p>
<tr>
<td class="key-table-key"><code class="key" id="key-Props">"Props"</code>
<td class="key-table-required">No
<td>The properties (Props) key.
<tr>
<td class="key-table-key"><code class="key" id="key-Select">"Select"</code>
<td class="key-table-required">No
<td>The Select key.
<tr>
<td class="key-table-key"><code class="key" id="key-ZoomIn">"ZoomIn"</code>
<td class="key-table-required">No
<td>The ZoomIn key. (<code class="android">KEYCODE_ZOOM_IN</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-ZoomOut">"ZoomOut"</code>
<td class="key-table-required">No
<td>The ZoomOut key. (<code class="android">KEYCODE_ZOOM_OUT</code>)
</table>
<h3 class="heading settled" data-level="3.7" id="keys-device"><span class="secno">3.7. </span><span class="content">Device Keys</span><a class="self-link" href="#keys-device"></a></h3>
<table class="data-table full-width" id="key-table-device">
<thead>
<tr>
<th style="width:20%"><a data-link-type="dfn" href="#key-attribute-value" id="ref-for-key-attribute-value②⑥">key attribute value</a>
<th style="width:10%">Required
<th style="width:70%">Typical Usage (Non-normative)
<tbody>
<tr>
<td class="key-table-key"><code class="key" id="key-BrightnessDown">"BrightnessDown"</code>
<td class="key-table-required">No
<td>The Brightness Down key. Typically controls the display brightness. (<code class="android">KEYCODE_BRIGHTNESS_DOWN</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-BrightnessUp">"BrightnessUp"</code>
<td class="key-table-required">No
<td>The Brightness Up key. Typically controls the display brightness. (<code class="android">KEYCODE_BRIGHTNESS_UP</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-Eject">"Eject"</code>
<td class="key-table-required">No
<td>Toggle removable media to eject (open) and insert (close) state. (<code class="android">KEYCODE_MEDIA_EJECT</code>)
<tr>
<td class="key-table-key"><code class="key" id="key-LogOff">"LogOff"</code>
<td class="key-table-required">No
<td>The LogOff key.
<tr>
<td class="key-table-key"><code class="key" id="key-Power">"Power"</code>
<td class="key-table-required">No
<td>
Toggle power state. (<code class="android">KEYCODE_POWER</code>)
<p class="note" role="note">Note: Some devices might not expose this key to the operating environment.</p>
<tr>
<td class="key-table-key"><code class="key" id="key-PowerOff">"PowerOff"</code>
<td class="key-table-required">No
<td>The <code class="keycap">PowerOff</code> key. Sometime called <code class="keycap">PowerDown</code>.
<tr>