-
Notifications
You must be signed in to change notification settings - Fork 16
/
impl-report.html
3322 lines (3214 loc) · 171 KB
/
impl-report.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 Implementation Report</title>
<meta content="ED" name="w3c-status">
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" 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="https://w3c.github.io/uievents-key/impl-report.html" rel="canonical">
<meta content="0fe3d58dad5c4041bff6c3df4d4192afa1671550" 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-colors */
/* Any --*-text not paired with a --*-bg is assumed to have a transparent bg */
:root {
color-scheme: light dark;
--text: black;
--bg: white;
--unofficial-watermark: url(https://www.w3.org/StyleSheets/TR/2016/logos/UD-watermark);
--logo-bg: #1a5e9a;
--logo-active-bg: #c00;
--logo-text: white;
--tocnav-normal-text: #707070;
--tocnav-normal-bg: var(--bg);
--tocnav-hover-text: var(--tocnav-normal-text);
--tocnav-hover-bg: #f8f8f8;
--tocnav-active-text: #c00;
--tocnav-active-bg: var(--tocnav-normal-bg);
--tocsidebar-text: var(--text);
--tocsidebar-bg: #f7f8f9;
--tocsidebar-shadow: rgba(0,0,0,.1);
--tocsidebar-heading-text: hsla(203,20%,40%,.7);
--toclink-text: var(--text);
--toclink-underline: #3980b5;
--toclink-visited-text: var(--toclink-text);
--toclink-visited-underline: #054572;
--heading-text: #005a9c;
--hr-text: var(--text);
--algo-border: #def;
--del-text: red;
--del-bg: transparent;
--ins-text: #080;
--ins-bg: transparent;
--a-normal-text: #034575;
--a-normal-underline: #bbb;
--a-visited-text: var(--a-normal-text);
--a-visited-underline: #707070;
--a-hover-bg: rgba(75%, 75%, 75%, .25);
--a-active-text: #c00;
--a-active-underline: #c00;
--blockquote-border: silver;
--blockquote-bg: transparent;
--blockquote-text: currentcolor;
--issue-border: #e05252;
--issue-bg: #fbe9e9;
--issue-text: var(--text);
--issueheading-text: #831616;
--example-border: #e0cb52;
--example-bg: #fcfaee;
--example-text: var(--text);
--exampleheading-text: #574b0f;
--note-border: #52e052;
--note-bg: #e9fbe9;
--note-text: var(--text);
--noteheading-text: hsl(120, 70%, 30%);
--notesummary-underline: silver;
--assertion-border: #aaa;
--assertion-bg: #eee;
--assertion-text: black;
--advisement-border: orange;
--advisement-bg: #fec;
--advisement-text: var(--text);
--advisementheading-text: #b35f00;
--warning-border: red;
--warning-bg: hsla(40,100%,50%,0.95);
--warning-text: var(--text);
--amendment-border: #330099;
--amendment-bg: #F5F0FF;
--amendment-text: var(--text);
--amendmentheading-text: #220066;
--def-border: #8ccbf2;
--def-bg: #def;
--def-text: var(--text);
--defrow-border: #bbd7e9;
--datacell-border: silver;
--indexinfo-text: #707070;
--indextable-hover-text: black;
--indextable-hover-bg: #f7f8f9;
--outdatedspec-bg: rgba(0, 0, 0, .5);
--outdatedspec-text: black;
--outdated-bg: maroon;
--outdated-text: white;
--outdated-shadow: red;
--editedrec-bg: darkorange;
}
</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-darkmode */
@media (prefers-color-scheme: dark) {
:root {
--text: #ddd;
--bg: black;
--unofficial-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cg fill='%23100808' transform='translate(200 200) rotate(-45) translate(-200 -200)' stroke='%23100808' stroke-width='3'%3E%3Ctext x='50%25' y='220' style='font: bold 70px sans-serif; text-anchor: middle; letter-spacing: 6px;'%3EUNOFFICIAL%3C/text%3E%3Ctext x='50%25' y='305' style='font: bold 70px sans-serif; text-anchor: middle; letter-spacing: 6px;'%3EDRAFT%3C/text%3E%3C/g%3E%3C/svg%3E");
--logo-bg: #1a5e9a;
--logo-active-bg: #c00;
--logo-text: white;
--tocnav-normal-text: #999;
--tocnav-normal-bg: var(--bg);
--tocnav-hover-text: var(--tocnav-normal-text);
--tocnav-hover-bg: #080808;
--tocnav-active-text: #f44;
--tocnav-active-bg: var(--tocnav-normal-bg);
--tocsidebar-text: var(--text);
--tocsidebar-bg: #080808;
--tocsidebar-shadow: rgba(255,255,255,.1);
--tocsidebar-heading-text: hsla(203,20%,40%,.7);
--toclink-text: var(--text);
--toclink-underline: #6af;
--toclink-visited-text: var(--toclink-text);
--toclink-visited-underline: #054572;
--heading-text: #8af;
--hr-text: var(--text);
--algo-border: #456;
--del-text: #f44;
--del-bg: transparent;
--ins-text: #4a4;
--ins-bg: transparent;
--a-normal-text: #6af;
--a-normal-underline: #555;
--a-visited-text: var(--a-normal-text);
--a-visited-underline: var(--a-normal-underline);
--a-hover-bg: rgba(25%, 25%, 25%, .2);
--a-active-text: #f44;
--a-active-underline: var(--a-active-text);
--borderedblock-bg: rgba(255, 255, 255, .05);
--blockquote-border: silver;
--blockquote-bg: var(--borderedblock-bg);
--blockquote-text: currentcolor;
--issue-border: #e05252;
--issue-bg: var(--borderedblock-bg);
--issue-text: var(--text);
--issueheading-text: hsl(0deg, 70%, 70%);
--example-border: hsl(50deg, 90%, 60%);
--example-bg: var(--borderedblock-bg);
--example-text: var(--text);
--exampleheading-text: hsl(50deg, 70%, 70%);
--note-border: hsl(120deg, 100%, 35%);
--note-bg: var(--borderedblock-bg);
--note-text: var(--text);
--noteheading-text: hsl(120, 70%, 70%);
--notesummary-underline: silver;
--assertion-border: #444;
--assertion-bg: var(--borderedblock-bg);
--assertion-text: var(--text);
--advisement-border: orange;
--advisement-bg: #222218;
--advisement-text: var(--text);
--advisementheading-text: #f84;
--warning-border: red;
--warning-bg: hsla(40,100%,20%,0.95);
--warning-text: var(--text);
--amendment-border: #330099;
--amendment-bg: #080010;
--amendment-text: var(--text);
--amendmentheading-text: #cc00ff;
--def-border: #8ccbf2;
--def-bg: #080818;
--def-text: var(--text);
--defrow-border: #136;
--datacell-border: silver;
--indexinfo-text: #aaa;
--indextable-hover-text: var(--text);
--indextable-hover-bg: #181818;
--outdatedspec-bg: rgba(255, 255, 255, .5);
--outdatedspec-text: black;
--outdated-bg: maroon;
--outdated-text: white;
--outdated-shadow: red;
--editedrec-bg: darkorange;
}
/* In case a transparent-bg image doesn't expect to be on a dark bg,
which is quite common in practice... */
img { background: white; }
}
@media (prefers-color-scheme: dark) {
:root {
--selflink-text: black;
--selflink-bg: silver;
--selflink-hover-text: white;
}
}
@media (prefers-color-scheme: dark) {
:root {
--dfnpanel-bg: #222;
--dfnpanel-text: var(--text);
}
}
</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 Implementation Report</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2023-05-09">9 May 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://w3c.github.io/uievents-key/impl-report.html">https://w3c.github.io/uievents-key/impl-report.html</a>
<dt>Issue Tracking:
<dd><a href="https://github.com/w3c/uievents-key/issues/">GitHub</a>
<dt class="editor">Editor:
<dd class="editor p-author h-card vcard"><a class="p-name fn u-email email" href="mailto:[email protected]">Gary Kacmarcik</a> (<span class="p-org org">Google</span>)
</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 document reports on implementations of the <a data-link-type="biblio" href="#biblio-uievents-key" title="UI Events KeyboardEvent key Values">[UIEvents-Key]</a> specification.</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 an Editors Draft. This document is intended to become a W3C 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.
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/">[email protected] archives</a>. </p>
<p> Publication as an Editors 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>
<li><a href="#methodology"><span class="secno">2</span> <span class="content">Methodology</span></a>
<li>
<a href="#results"><span class="secno">3</span> <span class="content">Results</span></a>
<ol class="toc">
<li><a href="#summary"><span class="secno">3.1</span> <span class="content">Summary</span></a>
<li>
<a href="#raw-results"><span class="secno">3.2</span> <span class="content">Raw Results</span></a>
<ol class="toc">
<li><a href="#key-attribute"><span class="secno">3.2.1</span> <span class="content">The <code class="idl"><span>key</span></code> Attribute</span></a>
<li><a href="#required-unnamed-key-attribute-values"><span class="secno">3.2.2</span> <span class="content">Required Unnamed Keys</span></a>
<li><a href="#required-named-key-attribute-values"><span class="secno">3.2.3</span> <span class="content">Required Named Keys</span></a>
<li><a href="#optional-editing-named-key-attribute-values"><span class="secno">3.2.4</span> <span class="content">Optional Editing Named Keys</span></a>
<li><a href="#optional-device-specific-named-key-attribute-values"><span class="secno">3.2.5</span> <span class="content">Optional Device-specific Named Keys</span></a>
</ol>
</ol>
<li><a href="#acknowledgements-contributors"><span class="secno">4</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-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>
</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>The <a data-link-type="biblio" href="#biblio-uievents-code" title="UI Events KeyboardEvent code Values">[UIEvents-Code]</a> specification defines the set of values that are valid for use
in the <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key">key</a></code> attribute.</p>
<p>This document summarizes the current implementation status of the <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key①">key</a></code> attribute and its values.</p>
<p>The following versions of each user agents were tested:</p>
<ul>
<li data-md>
<p>Google Chrome 60.0.3112.113 (OS X 10.12.2, Windows 10, Ubuntu)</p>
<li data-md>
<p>Microsoft Edge 40.15063.0.0 (Windows 10)</p>
<li data-md>
<p>Mozilla Firefox 55.0 (OS X 10.12.2, Windows 10, Ubuntu) & Nightly 95 (macOS 11.6)</p>
<li data-md>
<p>Apple Safari Version 15.0 (macOS 11.6)</p>
</ul>
<h2 class="heading settled" data-level="2" id="methodology"><span class="secno">2. </span><span class="content">Methodology</span><a class="self-link" href="#methodology"></a></h2>
<p>Because there is no automated way to test these key press events (expecially
considering that international keyboard are often required), these tests were all
performed manually.</p>
<p>There are two kinds of required values for this attribute: Unnamed and Named.</p>
<ul>
<li data-md>
<p>The Unnamed values can be any valid printable Unicode character. Since there are
an extremely large number of these values, it is not practical to test every possible
one. Instead, a sampling of 63 of the most common keys are tested.</p>
<li data-md>
<p>There are 38 required Named values and they are all manually tested.</p>
</ul>
<p>Manual tests were performed by visiting the <a href="https://domeventviewer.com/key-event-viewer.html">domeeventviewer.com/key-event-viewer.html</a> test page and examining the "key" column after pressing the key being tested. To test
keys (like "AltGraph") that are only present on keyboards for certain locales,
this requires using a keyboard from a locale that contains the key being tested.</p>
<p>For purposes of this report, Chrome, Firefox and Safari are considered independent
implementations.</p>
<h2 class="heading settled" data-level="3" id="results"><span class="secno">3. </span><span class="content">Results</span><a class="self-link" href="#results"></a></h2>
<h3 class="heading settled" data-level="3.1" id="summary"><span class="secno">3.1. </span><span class="content">Summary</span><a class="self-link" href="#summary"></a></h3>
<p>Manual tests for all 63 of the sampled Unnamed and all 38 of the Named required values
of the <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key②">key</a></code> attribute <b>Pass</b> in at least 2 independent
implementations.</p>
<p>The Candidate Recommendation exit criteria are therefore fulfilled.</p>
<p>In addition, the specification describes a number of optional Named values that may be
used to support multimedia or legacy keyboards. Of these, manual tests confirm that
39 of these Pass in at least 2 independent implementations.</p>
<h3 class="heading settled" data-level="3.2" id="raw-results"><span class="secno">3.2. </span><span class="content">Raw Results</span><a class="self-link" href="#raw-results"></a></h3>
<p>The following tables present the result of the manual tests.</p>
<p>Entries marked "Pass" generate the expected value when the corresponding key is
pressed.</p>
<p>Entries marked "Fail" generate some value other than the expected value when the
corresponding key is pressed. Wherever possible, a Note is included that provides more
information about the failure.</p>
<p>Entries marked with a "?" have not been tested, typically because devices
with that key were not available (for example, because keyboards with those keys are
not supported on that platform).</p>
<h4 class="heading settled" data-level="3.2.1" id="key-attribute"><span class="secno">3.2.1. </span><span class="content">The <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key③">key</a></code> Attribute</span><a class="self-link" href="#key-attribute"></a></h4>
<p>The <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key④">key</a></code> attribute (defined in <a data-link-type="biblio" href="#biblio-uievents" title="UI Events">[UIEvents]</a>) is present in all
browsers tested.</p>
<table class="data-table full-width" id="key-attribute-impl">
<thead>
<tr>
<th><code class="idl"><a data-link-type="idl" href="https://w3c.github.io/uievents/#keyboardevent" id="ref-for-keyboardevent">KeyboardEvent</a></code> attribute
<th class="key-impl-data">Chrome
<th class="key-impl-data">Edge
<th class="key-impl-data">Firefox
<th class="key-impl-data">Safari
<th>Notes
<tbody>
<tr>
<td><code class="idl"><a data-link-type="idl" href="https://w3c.github.io/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key⑤">key</a></code>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
</table>
<h4 class="heading settled" data-level="3.2.2" id="required-unnamed-key-attribute-values"><span class="secno">3.2.2. </span><span class="content">Required Unnamed Keys</span><a class="self-link" href="#required-unnamed-key-attribute-values"></a></h4>
<p>The <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/uievents/#dom-keyboardevent-key" id="ref-for-dom-keyboardevent-key⑥">key</a></code> attribute can contain any character that can be
produced by any key in any locale, so it is beyond the scope of this document
to attempt to enumerate all possible values that can be contained.</p>
<p>This section provides a basic sampling of key types and identifies if those
keys are generally supported by the user agent.</p>
<table class="data-table full-width" id="key-table-unnamed">
<thead>
<tr>
<th><a data-link-type="dfn" href="http://www.w3.org/TR/uievents-key/#" id="ref-for-something">key attribute value</a>
<th class="key-impl-data">Chrome
<th class="key-impl-data">Edge
<th class="key-impl-data">Firefox
<th class="key-impl-data">Safari
<th>Notes
<tbody>
<tr>
<td class="key-table-key"><code class="key">"A"</code>...<code class="key">"Z"</code>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><code class="key">"a"</code>...<code class="key">"z"</code>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><code class="key">"0"</code>...<code class="key">"9"</code>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><code class="key">" "</code>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
</table>
<h4 class="heading settled" data-level="3.2.3" id="required-named-key-attribute-values"><span class="secno">3.2.3. </span><span class="content">Required Named Keys</span><a class="self-link" href="#required-named-key-attribute-values"></a></h4>
<p>This section lists the basic set of named key attributes that corresponds
to values generated by a standard keyboard layout.</p>
<table class="data-table full-width" id="key-table-required">
<thead>
<tr>
<th><a data-link-type="dfn" href="http://www.w3.org/TR/uievents-key/#" id="ref-for-something①">key attribute value</a>
<th class="key-impl-data">Chrome
<th class="key-impl-data">Edge
<th class="key-impl-data">Firefox
<th class="key-impl-data">Safari
<th>Notes
<tbody>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Unidentified"><code class="key">"Unidentified"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td colspan="6" style="background-color: #B9C9FE">Modifier Keys
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Alt"><code class="key">"Alt"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-AltGraph"><code class="key">"AltGraph"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span>?</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-CapsLock"><code class="key">"CapsLock"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Control"><code class="key">"Control"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Meta"><code class="key">"Meta"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-NumLock"><code class="key">"NumLock"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span>?</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-ScrollLock"><code class="key">"ScrollLock"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span>?</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Shift"><code class="key">"Shift"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td colspan="6" style="background-color: #B9C9FE">Whitespace Keys
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Enter"><code class="key">"Enter"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Tab"><code class="key">"Tab"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td colspan="6" style="background-color: #B9C9FE">Navigation Keys
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-ArrowDown"><code class="key">"ArrowDown"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-ArrowLeft"><code class="key">"ArrowLeft"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-ArrowRight"><code class="key">"ArrowRight"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-ArrowUp"><code class="key">"ArrowUp"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-End"><code class="key">"End"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Home"><code class="key">"Home"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-PageDown"><code class="key">"PageDown"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-PageUp"><code class="key">"PageUp"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td colspan="6" style="background-color: #B9C9FE">Editing Keys
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Backspace"><code class="key">"Backspace"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Delete"><code class="key">"Delete"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Insert"><code class="key">"Insert"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span>?</span>
<td>
<tr>
<td colspan="6" style="background-color: #B9C9FE">UI Keys
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-ContextMenu"><code class="key">"ContextMenu"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span>?</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Escape"><code class="key">"Escape"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td>
<tr>
<td class="key-table-key"><a href="https://w3c.github.io/uievents-key/#key-Pause"><code class="key">"Pause"</code></a>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span class="key-impl-yes">Pass</span>
<td class="key-impl-data"><span>?</span>
<td>