-
Notifications
You must be signed in to change notification settings - Fork 9
/
TR.html
1513 lines (1277 loc) · 89.3 KB
/
TR.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 PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html lang="en-US" data-bug-product="WebAppsWG" data-bug-component="DOM3 Events" data-bug-short_desc="[D3E-code]: " typeof="bibo:Document w3p:WD" prefix="bibo: http://purl.org/ontology/bibo/ w3p: http://www.w3.org/2001/02pd/rec54#">
<head><meta lang="" property="dc:language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DOM Level 3 KeyboardEvent code Values</title>
<style>/* --- ISSUES/NOTES --- */
div.issue-title, div.note-title , div.warning-title {
padding-right: 1em;
min-width: 7.5em;
color: #b9ab2d;
}
div.issue-title { color: #e05252; }
div.note-title { color: #2b2; }
div.warning-title { color: #f22; }
div.issue-title span, div.note-title span, div.warning-title span {
text-transform: uppercase;
}
div.note, div.issue, div.warning {
margin-top: 1em;
margin-bottom: 1em;
}
.note > p:first-child, .issue > p:first-child, .warning > p:first-child { margin-top: 0 }
.issue, .note, .warning {
padding: .5em;
border-left-width: .5em;
border-left-style: solid;
}
div.issue, div.note , div.warning {
padding: 1em 1.2em 0.5em;
margin: 1em 0;
position: relative;
clear: both;
}
span.note, span.issue, span.warning { padding: .1em .5em .15em; }
.issue {
border-color: #e05252;
background: #fbe9e9;
}
.note {
border-color: #52e052;
background: #e9fbe9;
}
.warning {
border-color: #f11;
border-right-width: .2em;
border-top-width: .2em;
border-bottom-width: .2em;
border-style: solid;
background: #fbe9e9;
}
.warning-title:before{
content: "⚠"; /*U+26A0 WARNING SIGN*/
font-size: 3em;
float: left;
height: 100%;
padding-right: .3em;
vertical-align: top;
margin-top: -0.5em;
}
</style><link rel="author" href="mailto:www-dom@w3.org">
<link rel="help" href="http://www.w3.org/DOM/">
<link rel="alternate stylesheet" type="text/css" media="screen" title="geek" href="geek.css">
<link rel="stylesheet" type="text/css" href="spec-WD.css">
<link rel="stylesheet" type="text/css" href="https://www.w3.org/StyleSheets/TR/w3c-tr.css">
<link rel="stylesheet" type="text/css" href="https://www.w3.org/StyleSheets/TR/W3C-WD">
<link rel="stylesheet" type="text/css" href="override.css">
<script type="text/javascript" src="key-table-builder.js"></script>
<script src="bug-assist.js"></script>
<script type="text/javascript">
var respecConfig = {
specStatus: "ED",
shortName: "DOM-Level-3-Events-code",
editors: [
{
name: "Gary Kacmarcik",
company: "Google, Inc.",
url: "mailto:garykac@google.com?subject=%5BD3E-code%5D%20Spec%20Feedback",
companyURL: "http://www.google.com",
},
{
name: "Travis Leithead",
company: "Microsoft Corp.",
url: "mailto:travis.leithead@microsoft.com?subject=%5BD3E-code%5D%20Spec%20Feedback",
companyURL: "http://www.microsoft.com",
},
],
otherLinks: [{
key: 'Participate',
data: [{
value: 'File a bug',
href: 'https://www.w3.org/Bugs/Public/enter_bug.cgi?product=WebAppsWG',
}, {
value: 'Bug list',
href: 'https://www.w3.org/Bugs/Public/buglist.cgi?component=UI%20Events&list_id=55057&product=WebAppsWG&resolution=---',
}, {
value: 'Mailing list archive (www-dom)',
href: 'http://lists.w3.org/Archives/Public/www-dom/',
}, {
value: 'Github repository',
href: 'https://github.com/w3c/DOM-Level-3-Events-code',
}, {
value: 'Commit history',
href: 'https://github.com/w3c/DOM-Level-3-Events-code/commits',
}, {
value: 'UI Events Wiki Home',
href: 'http://www.w3.org/2008/webapps/wiki/DOM3Events',
}],
}],
publishDate: "2015-04-22",
edDraftURI: "https://w3c.github.io/DOM-Level-3-Events-code/",
previousPublishDate: "2014-06-12",
//previousMaturity: "WD",
noIDLIn: true,
inlineCSS: true,
//noRecTrack: true,
wg: ["Web Applications Working Group"],
wgURI: ["http://www.w3.org/2008/webapps/"],
wgPublicList: "www-dom",
wgPatentURI: ["http://www.w3.org/2004/01/pp-impl/42538/status"],
maxTocLevel: 4
};
</script>
<style>/*****************************************************************
* ReSpec 3 CSS
* Robin Berjon - http://berjon.com/
*****************************************************************/
/* --- INLINES --- */
em.rfc2119 {
text-transform: lowercase;
font-variant: small-caps;
font-style: normal;
color: #900;
}
h1 acronym, h2 acronym, h3 acronym, h4 acronym, h5 acronym, h6 acronym, a acronym,
h1 abbr, h2 abbr, h3 abbr, h4 abbr, h5 abbr, h6 abbr, a abbr {
border: none;
}
dfn {
font-weight: bold;
}
a.internalDFN {
color: inherit;
border-bottom: 1px solid #99c;
text-decoration: none;
}
a.externalDFN {
color: inherit;
border-bottom: 1px dotted #ccc;
text-decoration: none;
}
a.bibref {
text-decoration: none;
}
cite .bibref {
font-style: normal;
}
code {
color: #C83500;
}
/* --- TOC --- */
.toc a, .tof a {
text-decoration: none;
}
a .secno, a .figno {
color: #000;
}
ul.tof, ol.tof {
list-style: none outside none;
}
.caption {
margin-top: 0.5em;
font-style: italic;
}
/* --- TABLE --- */
table.simple {
border-spacing: 0;
border-collapse: collapse;
border-bottom: 3px solid #005a9c;
}
.simple th {
background: #005a9c;
color: #fff;
padding: 3px 5px;
text-align: left;
}
.simple th[scope="row"] {
background: inherit;
color: inherit;
border-top: 1px solid #ddd;
}
.simple td {
padding: 3px 10px;
border-top: 1px solid #ddd;
}
.simple tr:nth-child(even) {
background: #f0f6ff;
}
/* --- DL --- */
.section dd > p:first-child {
margin-top: 0;
}
.section dd > p:last-child {
margin-bottom: 0;
}
.section dd {
margin-bottom: 1em;
}
.section dl.attrs dd, .section dl.eldef dd {
margin-bottom: 0;
}
@media print {
.removeOnSave {
display: none;
}
}
</style><link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/W3C-WD"><!--[if lt IE 9]><script src='https://www.w3.org/2008/site/js/html5shiv.js'></script><![endif]--></head>
<body class="h-entry" role="document" id="respecDocument"><div class="head" role="contentinfo" id="respecHeader">
<p>
<a href="http://www.w3.org/"><img width="72" height="48" src="https://www.w3.org/Icons/w3c_home" alt="W3C"></a>
</p>
<h1 class="title p-name" id="title" property="dcterms:title">DOM Level 3 KeyboardEvent code Values</h1>
<h2 id="w3c-working-draft-28-april-2015"><abbr title="World Wide Web Consortium">W3C</abbr> Working Draft <time property="dcterms:issued" class="dt-published" datetime="2015-04-28">28 April 2015</time></h2>
<dl>
<dt>This version:</dt>
<dd><a class="u-url" href="http://www.w3.org/TR/2015/WD-DOM-Level-3-Events-code-20150428/">http://www.w3.org/TR/2015/WD-DOM-Level-3-Events-code-20150428/</a></dd>
<dt>Latest published version:</dt>
<dd><a href="http://www.w3.org/TR/DOM-Level-3-Events-code/">http://www.w3.org/TR/DOM-Level-3-Events-code/</a></dd>
<dt>Latest editor's draft:</dt>
<dd><a href="https://w3c.github.io/DOM-Level-3-Events-code/">https://w3c.github.io/DOM-Level-3-Events-code/</a></dd>
<dt>Previous version:</dt>
<dd><a rel="dcterms:replaces" href="http://www.w3.org/TR/2014/WD-DOM-Level-3-Events-code-20140612/">http://www.w3.org/TR/2014/WD-DOM-Level-3-Events-code-20140612/</a></dd>
<dt>Editors:</dt>
<dd class="p-author h-card vcard" property="bibo:editor" resource="_:editor0"><span property="rdf:first" typeof="foaf:Person"><meta property="foaf:name" content="Gary Kacmarcik"><a class="u-url url p-name fn" property="foaf:homepage" href="mailto:garykac@google.com?subject=%5BD3E-code%5D%20Spec%20Feedback">Gary Kacmarcik</a>, <a property="foaf:workplaceHomepage" class="p-org org h-org h-card" href="http://www.google.com">Google, Inc.</a></span>
<span property="rdf:rest" resource="_:editor1"></span>
</dd>
<dd class="p-author h-card vcard" resource="_:editor1"><span property="rdf:first" typeof="foaf:Person"><meta property="foaf:name" content="Travis Leithead"><a class="u-url url p-name fn" property="foaf:homepage" href="mailto:travis.leithead@microsoft.com?subject=%5BD3E-code%5D%20Spec%20Feedback">Travis Leithead</a>, <a property="foaf:workplaceHomepage" class="p-org org h-org h-card" href="http://www.microsoft.com">Microsoft Corp.</a></span>
<span property="rdf:rest" resource="rdf:nil"></span>
</dd>
<dt>Participate:</dt>
<dd>
<a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=WebAppsWG">
File a bug
</a>
</dd>
<dd>
<a href="https://www.w3.org/Bugs/Public/buglist.cgi?component=UI%20Events&list_id=55057&product=WebAppsWG&resolution=---">
Bug list
</a>
</dd>
<dd>
<a href="http://lists.w3.org/Archives/Public/www-dom/">
Mailing list archive (www-dom)
</a>
</dd>
<dd>
<a href="https://github.com/w3c/DOM-Level-3-Events-code">
Github repository
</a>
</dd>
<dd>
<a href="https://github.com/w3c/DOM-Level-3-Events-code/commits">
Commit history
</a>
</dd>
<dd>
<a href="http://www.w3.org/2008/webapps/wiki/DOM3Events">
UI Events Wiki Home
</a>
</dd>
</dl>
<p class="copyright">
<a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> ©
2015
<a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup>
(<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>,
<a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>,
<a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>).
<abbr title="World Wide Web Consortium">W3C</abbr> <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
<a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and
<a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a>
rules apply.
</p>
<hr>
</div>
<!-- Section: Abstract ========================================================-->
<section id="abstract" class="introductory" property="dc:abstract"><h2 id="h-abstract" resource="#h-abstract"><span property="xhv:role" resource="xhv:heading">Abstract</span></h2>
<p>This specification defines the values for the
<code>KeyboardEvent.code</code> attribute, which is defined as part of the
Document Object Model (DOM) Level 3 Events Specification [<a href="#references-D3E">DOM3 Events</a>].
The <code>code</code> value contains information about the key event that
can use used identify the physical key being pressed by the user.
</p>
</section><section id="sotd" class="introductory"><h2 id="h-sotd" resource="#h-sotd"><span property="xhv:role" resource="xhv:heading">Status of This Document</span></h2>
<p>
<em>This section describes the status of this document at the time of its publication.
Other documents may supersede this document. 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="http://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at
http://www.w3.org/TR/.</em>
</p>
<p>This document is a Working Draft of the
<em>DOM Level 3 KeyboardEvent <code>code</code> Values</em>
specification.
It is expected that this specification will progress to
<abbr title="World Wide Web Consortium">W3C</abbr>
Recommendation status after review and refinement.
</p>
<p id="this-document-is-produced-by-the-web-app">
This document is produced by the
<a href="http://www.w3.org/2008/webapps/">Web Applications WG</a>,
part of the
<a href="http://www.w3.org/2006/rwc/Activity">Rich Web Clients Activity</a>
in the <abbr title="World Wide Web Consortium">W3C</abbr>
<a href="http://www.w3.org/Interaction/">Interaction Domain</a>.
It is expected that this document will progress along the <abbr title="World Wide Web Consortium">W3C</abbr>'s Recommendation track.
Publication as a Working Draft does not imply endorsement by the <abbr title="World Wide Web Consortium">W3C</abbr> Membership.
This is a draft document and <em class="rfc2119" title="MAY">MAY</em> 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 id="latest-editors-draft">
<strong>You can find the latest
<a href="https://w3c.github.io/DOM-Level-3-Events-code/">Editor's Draft</a>
of this document in the
<a href="https://github.com/w3c/DOM-Level-3-Events-code"><abbr title="World Wide Web Consortium">W3C</abbr>'s Github repository</a>,
which is updated on a regular basis.</strong>
</p>
<p id="unstable">
<strong class="redNote">Implementers should be aware that this document is not stable.</strong>
Implementers who are not taking part in the discussions are likely to find the
specification changing out from under them in incompatible ways.
Vendors interested in implementing this document before it eventually reaches
the Candidate Recommendation stage should join the aforementioned mailing lists
and take part in the discussions.
</p>
<p>
This document was published by the <a href="http://www.w3.org/2008/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.
If you wish to make comments regarding this document, please send them to
<a href="mailto:www-dom@w3.org">www-dom@w3.org</a>
(<a href="mailto:www-dom-request@w3.org?subject=subscribe">subscribe</a>,
<a href="http://lists.w3.org/Archives/Public/www-dom/">archives</a>).
All comments are welcome.
</p>
<p>
Publication as a Working Draft does not imply endorsement by the <abbr title="World Wide Web Consortium">W3C</abbr>
Membership. 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 id="sotd_patent" property="w3p:patentRules" href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 <abbr title="World Wide Web Consortium">W3C</abbr> Patent
Policy</a>.
<abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a href="http://www.w3.org/2004/01/pp-impl/42538/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="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential
Claim(s)</a> must disclose the information in accordance with
<a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#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 id="w3c_process_revision" href="http://www.w3.org/2014/Process-20140801/">1 August 2014 <abbr title="World Wide Web Consortium">W3C</abbr> Process Document</a>.
</p>
</section><section id="toc"><h2 class="introductory" id="h-toc" resource="#h-toc"><span property="xhv:role" resource="xhv:heading">Table of Contents</span></h2><ul class="toc" role="directory" id="respecContents"><li class="tocline"><a href="#keyboard-layout" class="tocxref"><span class="secno">1. </span>Keyboard Layout</a><ul class="toc"><li class="tocline"><a href="#keyboard-common-layouts" class="tocxref"><span class="secno">1.1 </span>Standard Keyboard Layouts</a><ul class="toc"><li class="tocline"><a href="#keyboard-sections" class="tocxref"><span class="secno">1.1.1 </span>Keyboard Sections</a></li><li class="tocline"><a href="#keyboard-101" class="tocxref"><span class="secno">1.1.2 </span>Standard "101" Keyboard Layout</a></li><li class="tocline"><a href="#keyboard-101alt" class="tocxref"><span class="secno">1.1.3 </span>Alternate "101" Keyboard Layout</a></li><li class="tocline"><a href="#keyboard-102" class="tocxref"><span class="secno">1.1.4 </span>Standard "102" Keyboard Layout</a></li><li class="tocline"><a href="#keyboard-103" class="tocxref"><span class="secno">1.1.5 </span>Korean "103" Keyboard Layout</a></li><li class="tocline"><a href="#keyboard-104" class="tocxref"><span class="secno">1.1.6 </span>Brazilian "104" Keyboard Layout</a></li><li class="tocline"><a href="#keyboard-106" class="tocxref"><span class="secno">1.1.7 </span>Japanese "106" Keyboard Layout</a></li><li class="tocline"><a href="#keyboard-mac" class="tocxref"><span class="secno">1.1.8 </span>Apple Keyboard Layout</a></li><li class="tocline"><a href="#keyboard-laptops" class="tocxref"><span class="secno">1.1.9 </span>Laptop Keyboard Layouts</a></li></ul></li><li class="tocline"><a href="#keyboard-mobile" class="tocxref"><span class="secno">1.2 </span>Mobile Keypads</a></li><li class="tocline"><a href="#remote-control" class="tocxref"><span class="secno">1.3 </span>Media Remote Controls</a></li><li class="tocline"><a href="#keyboard-chording-virtual" class="tocxref"><span class="secno">1.4 </span>Virtual Keyboards and Chording Keyboards</a></li></ul></li><li class="tocline"><a href="#code-value-tables" class="tocxref"><span class="secno">2. </span>Keyboard Event <code>code</code> Value Tables</a><ul class="toc"><li class="tocline"><a href="#keyboard-key-codes" class="tocxref"><span class="secno">2.1 </span>Key Codes for Standard Keyboards</a><ul class="toc"><li class="tocline"><a href="#key-alphanumeric-section" class="tocxref"><span class="secno">2.1.1 </span>Alphanumeric Section</a><ul class="toc"><li class="tocline"><a href="#key-alphanumeric-writing-system" class="tocxref"><span class="secno">2.1.1.1 </span>Writing System Keys</a></li><li class="tocline"><a href="#key-alphanumeric-functional" class="tocxref"><span class="secno">2.1.1.2 </span>Functional Keys</a></li></ul></li><li class="tocline"><a href="#key-controlpad-section" class="tocxref"><span class="secno">2.1.2 </span>Control Pad Section</a></li><li class="tocline"><a href="#key-arrowpad-section" class="tocxref"><span class="secno">2.1.3 </span>Arrow Pad Section</a></li><li class="tocline"><a href="#key-numpad-section" class="tocxref"><span class="secno">2.1.4 </span>Numpad Section</a></li><li class="tocline"><a href="#key-function-section" class="tocxref"><span class="secno">2.1.5 </span>Function Section</a></li><li class="tocline"><a href="#key-media" class="tocxref"><span class="secno">2.1.6 </span>Media Keys</a></li><li class="tocline"><a href="#key-legacy" class="tocxref"><span class="secno">2.1.7 </span>Legacy Keys and Non-Standard Keys</a></li></ul></li></ul></li><li class="tocline"><a href="#acknowledgements-contributors" class="tocxref"><span class="secno">3. </span>Acknowledgements</a></li><li class="tocline"><a href="#references" class="tocxref"><span class="secno">4. </span>References</a><ul class="toc"><li class="tocline"><a href="#references-References-Normative" class="tocxref"><span class="secno">4.1 </span>Normative References</a></li></ul></li></ul></section> <!-- abstract -->
<!-- Section: SOTD ========================================================-->
<!-- sotd -->
<!-- Section 6: Keyboard and key values ========================================================-->
<section id="keyboard-layout" typeof="bibo:Chapter" resource="#keyboard-layout" property="bibo:hasPart">
<!--OddPage--><h2 id="h-keyboard-layout" resource="#h-keyboard-layout"><span property="xhv:role" resource="xhv:heading"><span class="secno">1. </span>Keyboard Layout</span></h2>
<p><em>This section is informative</em></p>
<p>Alphanumeric keyboards are the most common way for users to generate keyboard events.
This section provides an overview of standard keyboards and their physical layouts.
</p>
<section id="keyboard-common-layouts" typeof="bibo:Chapter" resource="#keyboard-common-layouts" property="bibo:hasPart">
<h3 id="h-keyboard-common-layouts" resource="#h-keyboard-common-layouts"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1 </span>Standard Keyboard Layouts</span></h3>
<p>This section describes the physical layouts found on commonly available keyboards.
</p>
<section id="keyboard-sections" typeof="bibo:Chapter" resource="#keyboard-sections" property="bibo:hasPart">
<h4 id="h-keyboard-sections" resource="#h-keyboard-sections"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1.1 </span>Keyboard Sections</span></h4>
<p>When discussing keyboard layouts, it is convenient to divide the standard keyboard into distinct sections
and to label each row.
</p>
<figure id="figure-keyboard-sections">
<img src="images/keyboard-sections.svg" width="684" height="225" alt="The five general sections of a standard keyboard">
<figcaption>Fig. <span class="figno">1</span> <span class="fig-title">The five general sections of a standard keyboard</span></figcaption>
</figure>
<p>These keyboard sections are:
</p>
<ul>
<li>The <em>Alphanumeric</em> section is the main part of the keyboard and is where most of the keyboard variation occurs.
When a user selects a keyboard layout, it is the keys in this sections that are most affected.
</li>
<li>The <em>Control Pad</em> and <em>Arrow Pad</em> sections contain the arrow keys and other editing keys.
</li>
<li>The <em>Numpad</em> (also known as the "numeric keypad" or "number pad") contains number and math keys to make it
easier to enter numeric data.
</li>
<li>And finally, the <em>Function</em> section contains miscellaneous function keys and special keys like Escape.
</li>
</ul>
<p>To make it easier to identify keys, the rows on the keyboard are named starting with "A"
for the bottom row up to "E" for the top row. The row of keys in the Function section are considered
to be in row "K".
These row names are consistent with those given in the ISO/IEC 9995-1 specification.
</p>
<p>Note that many keyboards (both modern and legacy) have extra keys that do not fit neatly into the above sections.
Some of these keys are covered in the <a href="#key-media">Media Keys</a> section.
</p>
</section><!-- keyboard-sections -->
<section id="keyboard-101" typeof="bibo:Chapter" resource="#keyboard-101" property="bibo:hasPart">
<h4 id="h-keyboard-101" resource="#h-keyboard-101"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1.2 </span>Standard "101" Keyboard Layout</span></h4>
<p>The standard "101" keyboard (commonly referred to as the "US layout") is the only layout that uses the <code class="code">'Backslash'</code> code.
All the other layouts omit this key and expand the <code class="code">'Enter'</code> key to occupy
two-rows.
</p>
<figure id="figure-keyboard-101-us">
<img src="images/keyboard-101-us.svg" width="684" height="225" alt="Standard '101' keyboard layout">
<figcaption>Fig. <span class="figno">2</span> <span class="fig-title">Standard '101' keyboard layout showing unmodified US key values</span></figcaption>
</figure>
<p>Modern standard "101"-layout keyboards actually contain 104 keys: 61 keys in the alphanumeric section
and 43 keys in the numpad, control pad, arrow pad and function sections.
The "101" name for this keyboard layout dates to the time when this standard keyboard did in fact contain
101 keys. The two <code class="glyph">'OS'</code> keys,
and the <code class="glyph">'Menu'</code> key were
added later to bring the total to 104 keys.
</p>
</section>
<section id="keyboard-101alt" typeof="bibo:Chapter" resource="#keyboard-101alt" property="bibo:hasPart">
<h4 id="h-keyboard-101alt" resource="#h-keyboard-101alt"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1.3 </span>Alternate "101" Keyboard Layout</span></h4>
<p>The alternate "101" keyboard removes the <code class="code">'Backslash'</code> key to create a
large <code class="code">'Enter'</code> key and shrinks the <code class="code">'Backspace'</code>
key to make room for the <code class="code">'IntlYen'</code> key (The <code class="code">'IntlYen'</code> name comes from the
Japanese layout — in the Russian layout shown above this key maps to a <code class="glyph">'\'</code>.
</p>
<figure id="figure-keyboard-101-russian">
<img src="images/keyboard-101-russian.svg" width="684" height="225" alt="Alternate '101' keyboard layout">
<figcaption>Fig. <span class="figno">3</span> <span class="fig-title">Alternate '101' keyboard layout showing unmodified Russian key values</span></figcaption>
</figure>
<p>Modern alternate "101"-layout keyboards contain 104 keys: 61 keys in the alphanumeric section and 43 keys in the numpad,
control pad, arrow pad and function sections.
</p>
</section>
<section id="keyboard-102" typeof="bibo:Chapter" resource="#keyboard-102" property="bibo:hasPart">
<h4 id="h-keyboard-102" resource="#h-keyboard-102"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1.4 </span>Standard "102" Keyboard Layout</span></h4>
<p>The standard "102" keyboard is common throughout Europe and adds two keys that don't exist on the
"101" layouts:
The <code class="code">'IntlBackslash'</code> key next to the left shift key,
and the <code class="code">'IntlHash'</code> key which is partially tucked under the
<code class="code">'Enter'</code> key.
</p>
<figure id="figure-keyboard-102-uk">
<img src="images/keyboard-102-uk.svg" width="684" height="225" alt="Standard '102' keyboard layout">
<figcaption>Fig. <span class="figno">4</span> <span class="fig-title">Standard '102' keyboard layout showing unmodified French key values</span></figcaption>
</figure>
<p>Modern "102"-layout keyboards contain 105 keys: 62 keys in the alphanumeric section and 43 keys in the numpad,
control pad, arrow pad and function sections.
</p>
</section>
<section id="keyboard-103" typeof="bibo:Chapter" resource="#keyboard-103" property="bibo:hasPart">
<h4 id="h-keyboard-103" resource="#h-keyboard-103"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1.5 </span>Korean "103" Keyboard Layout</span></h4>
<p>The Korean "103" keyboard is based on the alternate 101 layout and adds two additional keys
(one on each side of the spacebar) to handle Korean-specific input modes.
These keys are
<code class="code">'Hanja'</code> (labelled <code class="keycap">한자</code> <span class="phonetic">hanja</span>) and
<code class="code">'HangulMode'</code> (labelled <code class="keycap">한/영</code> <span class="phonetic">han/yeong</span>).
</p>
<figure id="figure-keyboard-103-korean">
<img src="images/keyboard-103-korean.svg" width="684" height="225" alt="Korean '103' keyboard layout">
<figcaption>Fig. <span class="figno">5</span> <span class="fig-title">Korean '103' keyboard layout showing unmodified Korean key values</span></figcaption>
</figure>
<p>Modern "103"-layout keyboards contain 106 keys: 63 keys in the alphanumeric section and 43 keys in the numpad,
control pad, arrow pad and function sections.
</p>
</section>
<section id="keyboard-104" typeof="bibo:Chapter" resource="#keyboard-104" property="bibo:hasPart">
<h4 id="h-keyboard-104" resource="#h-keyboard-104"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1.6 </span>Brazilian "104" Keyboard Layout</span></h4>
<p>The "104" layout used in Brazil adds 4 new keys: the two non-US keys from the "102" layout
(<code class="code">'IntlHash'</code> and <code class="code">'IntlBackslash'</code>)
plus the <code class="code">'IntlRo'</code> key (next to the right shift
key) and an extra key on the numeric keypad. This new keypad key is called
<code class="code">'KeypadComma'</code> because it represents the thousands separator. On the
Brazilian key layout, this key has a keycap of <code class="keycap">.</code> and the <code class="code">'KeypadPeriod'</code>
key has a keycap of <code class="keycap">,</code>.
</p>
<figure id="figure-keyboard-104-brazilian">
<img src="images/keyboard-104-brazilian.svg" width="684" height="225" alt="Standard '104' keyboard layout">
<figcaption>Fig. <span class="figno">6</span> <span class="fig-title">Standard '104' keyboard layout showing unmodified Brazilian key values</span></figcaption>
</figure>
<p>Modern "104"-layout keyboards contain 107 keys: 63 keys in the alphanumeric section and 44 keys in the numpad,
control pad, arrow pad and function sections. Some Brazilian keyboards lack the extra keypad
key and have only 106 keys.
</p>
</section>
<section id="keyboard-106" typeof="bibo:Chapter" resource="#keyboard-106" property="bibo:hasPart">
<h4 id="h-keyboard-106" resource="#h-keyboard-106"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1.7 </span>Japanese "106" Keyboard Layout</span></h4>
<p>The Japanese "106" keyboard layout adds 3 new keys:
<code class="code">'IntlYen'</code>,
<code class="code">'IntlHash'</code> and
<code class="code">'IntlRo'</code>.
It also shrinks the <code class="code">'Space'</code> key to make room for 3 input mode keys:
<code class="code">'NonConvert'</code> (labelled <code class="keycap">無変換</code> <span class="phonetic">muhenkan</span>),
<code class="code">'Convert'</code> (labelled <code class="keycap">変換</code> <span class="phonetic">henkan</span>),
<code class="code">'KanaMode'</code> (labelled <code class="keycap">カタカナ/ひらがな/ローマ字</code> <span class="phonetic">katakana/hiragana/romaji</span>).
</p>
<figure id="figure-keyboard-106-japanese">
<img src="images/keyboard-106-japanese.svg" width="684" height="225" alt="Standard '106' keyboard layout">
<figcaption>Fig. <span class="figno">7</span> <span class="fig-title">Standard '106' keyboard layout showing unmodified Japanese key values</span></figcaption>
</figure>
<p>Modern "106"-layout keyboards contain 109 keys: 66 keys in the alphanumeric section and 43 keys in the numpad,
control pad, arrow pad and function sections.
</p>
</section>
<section id="keyboard-mac" typeof="bibo:Chapter" resource="#keyboard-mac" property="bibo:hasPart">
<h4 id="h-keyboard-mac" resource="#h-keyboard-mac"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1.8 </span>Apple Keyboard Layout</span></h4>
<p>In general, Apple keyboards follow the same layout as PC keyboards, but there are some differences as
noted in the following figure.
</p>
<figure id="figure-keyboard-mac">
<img src="images/keyboard-mac.svg" width="684" height="225" alt="Apple extended keyboard layout">
<figcaption>Fig. <span class="figno">8</span> <span class="fig-title">Apple extended keyboard layout showing unmodified English key values</span></figcaption>
</figure>
<p>In this figure, the green keys are those
that have been moved to a new location while the blue keys indicate keys that have been added.
</p>
</section>
<section id="keyboard-laptops" typeof="bibo:Chapter" resource="#keyboard-laptops" property="bibo:hasPart">
<h4 id="h-keyboard-laptops" resource="#h-keyboard-laptops"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.1.9 </span>Laptop Keyboard Layouts</span></h4>
<p>The limited space available on laptop keyboards often means that the physical key layout needs
to be adjusted to fit all the required keys. The writing system keys in the Alphanumeric section tend
to remain intact, but the other keyboard sections are usually combined with other keys or
removed altogether.
</p>
<figure id="figure-keyboard-laptop-mac">
<img src="images/keyboard-laptop-mac.svg" width="420" height="180" alt="Apple laptop keyboard layout">
<figcaption>Fig. <span class="figno">9</span> <span class="fig-title">Apple laptop keyboard layout</span></figcaption>
</figure>
<p>In this Apple laptop keyboard, the right control key has been removed to make room for half-height
arrow keys and a <code class="code">'Fn'</code> key is added on the left.
</p>
<figure id="figure-keyboard-laptop">
<img src="images/keyboard-laptop.svg" width="460" height="180" alt="Sample PC laptop keyboard layout">
<figcaption>Fig. <span class="figno">10</span> <span class="fig-title">Sample PC laptop keyboard layout</span></figcaption>
</figure>
<p>PC laptop keyboards vary considerably, but this sample keyboard demonstrates some commonly found aspects.
The control pad keys are added along the right-hand side with the arrow keys tucked in along the bottom.
The right shift key is often shrunk to make room for the up arrow key and the right OS key
is typically removed altogether.
</p>
</section> <!-- keyboard-laptops -->
</section><!-- keyboard-common-layouts -->
<section id="keyboard-mobile" typeof="bibo:Chapter" resource="#keyboard-mobile" property="bibo:hasPart">
<h3 id="h-keyboard-mobile" resource="#h-keyboard-mobile"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.2 </span>Mobile Keypads</span></h3>
<p>In the case where a content author wishes to rely on the mechanical layout of a mobile keypad, this specification suggests the keyboard configuration specified
in ISO/IEC 9995-8:2006 [<cite><a class="informative" href="#references-ISO-9995-8">ISO-9995-8</a></cite>], which defines a numeric keypad layout and secondary assignment
of Unicode characters in the range <code class="char">'\u0061'</code>..<code class="char">'\u007A'</code> to the number keys <code>2</code> through <code>9</code>, as a common layout appropriate to some
international uses.</p>
<div class="note"><div class="note-title" aria-level="4" role="heading" id="h-note1"><span>Note</span></div><p class=""><strong>Note:</strong> This keypad layout, and in particular the distribution of letters is for English devices, and will not match the keypads
or configurations of many users. Content authors cannot rely upon any particular configuration, and are expected to create content in an internationalized and
localizable manner.</p></div>
<figure id="figure-numeric-keypad">
<img src="images/ISOIEC-9995-8-2006.svg" width="180" height="240" alt="ISO/IEC 9995-8:2006 keypad layout">
<figcaption>Fig. <span class="figno">11</span> <span class="fig-title">A graphical depiction of an ISO standard defining layouts of numeric keypads, with distribution of letters on the keys, ISO/IEC 9995-8:2006.</span></figcaption>
</figure>
</section> <!-- keyboard-mobile -->
<section id="remote-control" typeof="bibo:Chapter" resource="#remote-control" property="bibo:hasPart">
<h3 id="h-remote-control" resource="#h-remote-control"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.3 </span>Media Remote Controls</span></h3>
<p>Many keyboards contain special keys to control media functions. Increasingly, many media devices, especially televisions, are Web-enabled. Hybrid keyboard/remote-control
devices are becoming more common. To meet the needs of these hybrid Web/media devices, this specification defines keys that are common as remote control buttons,
in addition to traditional keyboard keys.</p>
<p>Because of the smaller form factor, keys (or buttons) on a remote control will often be modal,
with one key performing different functions based on the context of the on-screen content.
Additionally, many keys serve as toggles, to change back and forth between two or more states
(see toggling keys).
These remote control buttons typically do not have modifier states so each button is assigned a
single function (like "Play", "Pause", "Up", "Menu" or "Exit").
</p>
<figure id="figure-media-remote-control">
<img src="images/remote-control.svg" width="102" height="422" alt="A sample media remote control">
<figcaption>Fig. <span class="figno">12</span> <span class="fig-title">A graphical depiction of a media remote control, with buttons mapped to specific keys values.</span></figcaption>
</figure>
</section> <!-- remote-control -->
<section id="keyboard-chording-virtual" typeof="bibo:Chapter" resource="#keyboard-chording-virtual" property="bibo:hasPart">
<h3 id="h-keyboard-chording-virtual" resource="#h-keyboard-chording-virtual"><span property="xhv:role" resource="xhv:heading"><span class="secno">1.4 </span>Virtual Keyboards and Chording Keyboards</span></h3>
<p>Virtual keyboards are software-based sets of keys, in a variety of different arrangements, commonly found on touch-screen devices. They are often modal, with the
ability to switch between different dynamic sets of keys, such as alphabetic, numeric, or symbolic keys. Because of the lack of physical constraints, these keyboards
<em class="rfc2119" title="MAY">MAY</em> present the widest range of characters, including emoticons and other symbols, and <em class="rfc2119" title="MAY">MAY</em> have keys not represented by Unicode [<a href="#references-Unicode">Unicode</a>]
or by the <a href="http://www.w3.org/TR/DOM-Level-3-Events-key/#key-value-tables">key values</a>.
Wherever possible, however, virtual keyboards <em class="rfc2119" title="SHOULD">SHOULD</em> produce the normal range
of keyboard events and values, for ease of authoring and compatibility with existing content.</p>
<p>Chording keyboards, also know as chorded keysets or chord keyboards, are key input devices which produce values by pressing several keys in combination or sequence,
normally to simulate a full range of characters or commands on a reduced set of keys, often for single-handed use. A chording keyboard <em class="rfc2119" title="MAY">MAY</em> have additional mode
keys to switch between key values, and the number and type of keys pressed to produce a key value will vary, but the final key values produced by such keyboards
<em class="rfc2119" title="SHOULD">SHOULD</em> match the range of key values described in this specification.</p>
<p>For these and other alternative modal keyboards, the key values
<a href="http://www.w3.org/TR/DOM-Level-3-Events-key/#key-Alphanumeric"><code class="key">'Alphanumeric'</code></a>,
<a href="http://www.w3.org/TR/DOM-Level-3-Events-key/#key-CapsLock"><code class="key">'CapsLock'</code></a>,
<a href="http://www.w3.org/TR/DOM-Level-3-Events-key/#key-NumLock"><code class="key">'NumLock'</code></a>,
and
<a href="http://www.w3.org/TR/DOM-Level-3-Events-key/#key-SymbolLock"><code class="key">'SymbolLock'</code></a>
are <em class="rfc2119" title="RECOMMENDED">RECOMMENDED</em> for the keys which switch between different modes.
</p>
</section> <!-- keyboard-chording-virtual -->
</section> <!-- keyboard-layout -->
<section id="code-value-tables" typeof="bibo:Chapter" resource="#code-value-tables" property="bibo:hasPart">
<!--OddPage--><h2 id="h-code-value-tables" resource="#h-code-value-tables"><span property="xhv:role" resource="xhv:heading"><span class="secno">2. </span>Keyboard Event <code>code</code> Value Tables</span></h2>
<p>This section defines a list of <code>code</code> values which implementations <em class="rfc2119" title="MUST">MUST</em> support.
</p>
<section id="keyboard-key-codes" typeof="bibo:Chapter" resource="#keyboard-key-codes" property="bibo:hasPart">
<h3 id="h-keyboard-key-codes" resource="#h-keyboard-key-codes"><span property="xhv:role" resource="xhv:heading"><span class="secno">2.1 </span>Key Codes for Standard Keyboards</span></h3>
<p>This section describes the various keyboard sections in more detail and defines the <code>code</code>
values that should be used for each key.
</p>
<section id="key-alphanumeric-section" typeof="bibo:Chapter" resource="#key-alphanumeric-section" property="bibo:hasPart">
<h4 id="h-key-alphanumeric-section" resource="#h-key-alphanumeric-section"><span property="xhv:role" resource="xhv:heading"><span class="secno">2.1.1 </span>Alphanumeric Section</span></h4>
<p>The Alphanumeric section keys fall into two general categories: "writing system" keys whose meaning changes based on
the current keyboard layout, and "functional" keys which are (mostly) the same for all layouts.
</p>
<section id="key-alphanumeric-writing-system" typeof="bibo:Chapter" resource="#key-alphanumeric-writing-system" property="bibo:hasPart">
<h5 id="h-key-alphanumeric-writing-system" resource="#h-key-alphanumeric-writing-system"><span property="xhv:role" resource="xhv:heading"><span class="secno">2.1.1.1 </span>Writing System Keys</span></h5>
<p>The "writing system" keys are those that change meaning based on the current keyboard layout.
</p>
<figure id="figure-keyboard-codes-alphanum1">
<img src="images/keyboard-codes-alphanum1.svg" width="653" height="225" alt="The writing system keys">
<figcaption>Fig. <span class="figno">13</span> <span class="fig-title">The writing system keys in the alphanumeric section</span></figcaption>
</figure>
<p>This figure shows a hypothetical keyboard that combines all the writing system keys (shown in
blue and green) found on the various keyboards.
Blue keys are present on all standard keyboards while green keys are only available on some keyboards.
</p>
<p>The name shown on each key is the <code>code</code> assigned to that key.
Wherever possible, the <code>code</code> names are based on the name for the US key
in that position (i.e., they are based on the US keyboard layout). For keys that don't
exist on the US keyboard, names from the UK or Japanese layouts are used instead.
</p>
<table id="table-key-code-alphanumeric-writing-system" class="data-table full-width">
<caption>List of code values for writing system keys in the Alphanumeric section.</caption>
<thead><tr><th>Code Value</th><th>USB Usage ID<br>Page 0x07<br>(Informative)</th><th>Notes (Informative)</th></tr></thead>
<tbody>
<tr><td><code id="code-Backquote" class="code">'Backquote'</code></td>
<td>0x35</td><td><code class="keycap">`</code> and <code class="keycap">~</code> on a US keyboard. This is the <code class="keycap">半角/全角/漢字</code> (<span class="phonetic">hankaku/zenkaku/kanji</span>) key on Japanese keyboards</td></tr>
<tr><td><code id="code-Backslash" class="code">'Backslash'</code></td>
<td>0x31</td><td><code class="keycap">\</code> and <code class="keycap">|</code> on a US keyboard. Found only on standard 101-key layouts.</td></tr>
<tr><td><code id="code-Backspace" class="code">'Backspace'</code></td>
<td>0x2a</td><td>Labelled <code class="keycap">Delete</code> on Macintosh keyboards.</td></tr>
<tr><td><code id="code-BracketLeft" class="code">'BracketLeft'</code></td>
<td>0x2f</td><td><code class="keycap">[</code> and <code class="keycap">{</code> on a US keyboard.</td></tr>
<tr><td><code id="code-BracketRight" class="code">'BracketRight'</code></td>
<td>0x30</td><td><code class="keycap">]</code> and <code class="keycap">}</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Comma" class="code">'Comma'</code></td>
<td>0x36</td><td><code class="keycap">,</code> and <code class="keycap"><</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-0" class="code">'Digit0'</code></td>
<td>0x27</td><td><code class="keycap">0</code> and <code class="keycap">)</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-1" class="code">'Digit1'</code></td>
<td>0x1e</td><td><code class="keycap">1</code> and <code class="keycap">!</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-2" class="code">'Digit2'</code></td>
<td>0x1f</td><td><code class="keycap">2</code> and <code class="keycap">@</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-3" class="code">'Digit3'</code></td>
<td>0x20</td><td><code class="keycap">3</code> and <code class="keycap">#</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-4" class="code">'Digit4'</code></td>
<td>0x21</td><td><code class="keycap">4</code> and <code class="keycap">$</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-5" class="code">'Digit5'</code></td>
<td>0x22</td><td><code class="keycap">5</code> and <code class="keycap">%</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-6" class="code">'Digit6'</code></td>
<td>0x23</td><td><code class="keycap">6</code> and <code class="keycap">^</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-7" class="code">'Digit7'</code></td>
<td>0x24</td><td><code class="keycap">7</code> and <code class="keycap">&</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-8" class="code">'Digit8'</code></td>
<td>0x25</td><td><code class="keycap">8</code> and <code class="keycap">*</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Digit-9" class="code">'Digit9'</code></td>
<td>0x26</td><td><code class="keycap">9</code> and <code class="keycap">(</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Equal" class="code">'Equal'</code></td>
<td>0x2e</td><td><code class="keycap">=</code> and <code class="keycap">+</code> on a US keyboard.</td></tr>
<tr><td><code id="code-IntlBackslash" class="code">'IntlBackslash'</code></td>
<td>0x64</td><td>Located between the <code class="code">'ShiftLeft'</code> and <code class="code">'KeyZ'</code> keys. The <code class="keycap">\</code> and <code class="keycap">|</code> key on a UK keyboard.</td></tr>
<tr><td><code id="code-IntlHash" class="code">'IntlHash'</code></td>
<td>0x32</td><td>Located between the <code class="code">'Quote'</code> and <code class="code">'Enter'</code> keys on row E of the keyboard. The <code class="keycap">#</code> and <code class="keycap">~</code> key on a UK keyboard.</td></tr>
<tr><td><code id="code-IntlRo" class="code">'IntlRo'</code></td>
<td>0x87</td><td>Located between the <code class="code">'Slash'</code> and <code class="code">'ShiftRight'</code> keys. The <code class="keycap">\</code> and <code class="keycap">ろ</code> (<span class="phonetic">ro</span>) key on a Japanese keyboard.</td></tr>
<tr><td><code id="code-IntlYen" class="code">'IntlYen'</code></td>
<td>0x89</td><td>Located between the <code class="code">'Equal'</code> and <code class="code">'Backspace'</code> keys. The <code class="keycap">¥</code> (<span class="phonetic">yen</span>) key on a Japanese keyboard. The <code class="keycap">\</code> and <code class="keycap">/</code> key on a Russian keyboard.</td></tr>
<tr><td><code id="code-KeyA" class="code">'KeyA'</code></td>
<td>0x04</td><td><code class="keycap">a</code> on a US keyboard. Labelled <code class="keycap">q</code> on an AZERTY (e.g., French) keyboard.</td></tr>
<tr><td><code id="code-KeyB" class="code">'KeyB'</code></td>
<td>0x05</td><td><code class="keycap">b</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyC" class="code">'KeyC'</code></td>
<td>0x06</td><td><code class="keycap">c</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyD" class="code">'KeyD'</code></td>
<td>0x07</td><td><code class="keycap">d</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyE" class="code">'KeyE'</code></td>
<td>0x08</td><td><code class="keycap">e</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyF" class="code">'KeyF'</code></td>
<td>0x09</td><td><code class="keycap">f</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyG" class="code">'KeyG'</code></td>
<td>0x0a</td><td><code class="keycap">g</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyH" class="code">'KeyH'</code></td>
<td>0x0b</td><td><code class="keycap">h</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyI" class="code">'KeyI'</code></td>
<td>0x0c</td><td><code class="keycap">i</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyJ" class="code">'KeyJ'</code></td>
<td>0x0d</td><td><code class="keycap">j</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyK" class="code">'KeyK'</code></td>
<td>0x0e</td><td><code class="keycap">k</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyL" class="code">'KeyL'</code></td>
<td>0x0f</td><td><code class="keycap">l</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyM" class="code">'KeyM'</code></td>
<td>0x10</td><td><code class="keycap">m</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyN" class="code">'KeyN'</code></td>
<td>0x11</td><td><code class="keycap">n</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyO" class="code">'KeyO'</code></td>
<td>0x12</td><td><code class="keycap">o</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyP" class="code">'KeyP'</code></td>
<td>0x13</td><td><code class="keycap">p</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyQ" class="code">'KeyQ'</code></td>
<td>0x14</td><td><code class="keycap">q</code> on a US keyboard. Labelled <code class="keycap">a</code> on an AZERTY (e.g., French) keyboard.</td></tr>
<tr><td><code id="code-KeyR" class="code">'KeyR'</code></td>
<td>0x15</td><td><code class="keycap">r</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyS" class="code">'KeyS'</code></td>
<td>0x16</td><td><code class="keycap">s</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyT" class="code">'KeyT'</code></td>
<td>0x17</td><td><code class="keycap">t</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyU" class="code">'KeyU'</code></td>
<td>0x18</td><td><code class="keycap">u</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyV" class="code">'KeyV'</code></td>
<td>0x19</td><td><code class="keycap">v</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyW" class="code">'KeyW'</code></td>
<td>0x1a</td><td><code class="keycap">w</code> on a US keyboard. Labelled <code class="keycap">z</code> on an AZERTY (e.g., French) keyboard.</td></tr>
<tr><td><code id="code-KeyX" class="code">'KeyX'</code></td>
<td>0x1b</td><td><code class="keycap">x</code> on a US keyboard.</td></tr>
<tr><td><code id="code-KeyY" class="code">'KeyY'</code></td>
<td>0x1c</td><td><code class="keycap">y</code> on a US keyboard. Labelled <code class="keycap">z</code> on a QWERTZ (e.g., German) keyboard.</td></tr>
<tr><td><code id="code-KeyZ" class="code">'KeyZ'</code></td>
<td>0x1d</td><td><code class="keycap">z</code> on a US keyboard. Labelled <code class="keycap">w</code> on an AZERTY (e.g., French) keyboard, and <code class="keycap">y</code> on a QWERTZ (e.g., German) keyboard.</td></tr>
<tr><td><code id="code-Minus" class="code">'Minus'</code></td>
<td>0x2d</td><td><code class="keycap">-</code> and <code class="keycap">_</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Period" class="code">'Period'</code></td>
<td>0x37</td><td><code class="keycap">.</code> and <code class="keycap">></code> on a US keyboard.</td></tr>
<tr><td><code id="code-Quote" class="code">'Quote'</code></td>
<td>0x34</td><td><code class="keycap">'</code> and <code class="keycap">"</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Semicolon" class="code">'Semicolon'</code></td>
<td>0x33</td><td><code class="keycap">;</code> and <code class="keycap">:</code> on a US keyboard.</td></tr>
<tr><td><code id="code-Slash" class="code">'Slash'</code></td>
<td>0x38</td><td><code class="keycap">/</code> and <code class="keycap">?</code> on a US keyboard.</td></tr>
</tbody>
</table>
</section>
<section id="key-alphanumeric-functional" typeof="bibo:Chapter" resource="#key-alphanumeric-functional" property="bibo:hasPart">
<h5 id="h-key-alphanumeric-functional" resource="#h-key-alphanumeric-functional"><span property="xhv:role" resource="xhv:heading"><span class="secno">2.1.1.2 </span>Functional Keys</span></h5>
<p>The Functional keys (<em>not to be confused with the
<a href="#key-function-section">Function keys</a> described later</em>) are those
keys in the Alphanumeric section that provide general editing functions that are common to all locales
(like Shift, Tab, Enter and Backspace).
With a few exceptions, these keys do not change meaning based on the current keyboard layout.
</p>
<figure id="figure-keyboard-codes-alphanum2">
<img src="images/keyboard-codes-alphanum2.svg" width="653" height="225" alt="The standard set of functional keys">
<figcaption>Fig. <span class="figno">14</span> <span class="fig-title">The standard set of functional keys in the alphanumeric section</span></figcaption>
</figure>
<table id="table-key-code-alphanumeric-functional-1" class="data-table full-width">
<caption>List of code values for functional keys in the Alphanumeric section.</caption>
<thead><tr><th>Code Value</th><th>USB Usage ID<br>Page 0x07<br>(Informative)</th><th>Notes (Informative)</th></tr></thead>
<tbody>
<tr><td><code id="code-AltLeft" class="code">'AltLeft'</code></td>
<td>0xe2</td><td>Labelled <code class="keycap">Alt</code> or <code class="keycap">Option</code>.</td></tr>
<tr><td><code id="code-AltRight" class="code">'AltRight'</code></td>
<td>0xe6</td><td>Labelled <code class="keycap">Alt</code> or <code class="keycap">Option</code>. This is the <code class="keycap">AltGr</code> key on many keyboard layouts.</td></tr>
<tr><td><code id="code-CapsLock" class="code">'CapsLock'</code></td>
<td>0x39</td><td></td></tr>
<tr><td><code id="code-ContextMenu" class="code">'ContextMenu'</code></td>
<td>0x65</td><td>The application context menu key, which is typically found between the right OS key and the right Control key.</td></tr>
<tr><td><code id="code-ControlLeft" class="code">'ControlLeft'</code></td>
<td>0xe0</td><td></td></tr>
<tr><td><code id="code-ControlRight" class="code">'ControlRight'</code></td>
<td>0xe4</td><td></td></tr>
<tr><td><code id="code-Enter" class="code">'Enter'</code></td>
<td>0x28</td><td>Labelled <code class="keycap">Enter</code> and <code class="keycap">Return</code> on Macintosh keyboards.</td></tr>
<tr><td><code id="code-OSLeft" class="code">'OSLeft'</code></td>
<td>0xe3</td><td>The Windows, <code class="keycap">⌘</code>, <code class="keycap">Command</code> or other OS symbol key.</td></tr>
<tr><td><code id="code-OSRight" class="code">'OSRight'</code></td>
<td>0xe7</td><td>The Windows, <code class="keycap">⌘</code>, <code class="keycap">Command</code> or other OS symbol key.</td></tr>
<tr><td><code id="code-ShiftLeft" class="code">'ShiftLeft'</code></td>
<td>0xe1</td><td></td></tr>
<tr><td><code id="code-ShiftRight" class="code">'ShiftRight'</code></td>
<td>0xe5</td><td></td></tr>
<tr><td><code id="code-Space" class="code">'Space'</code></td>
<td>0x2c</td><td>The <code class="keycap"> </code> key.</td></tr>
<tr><td><code id="code-Tab" class="code">'Tab'</code></td>
<td>0x2b</td><td></td></tr>
</tbody>
</table>
<p>On some keyboards (notably Japanese and Korean) the spacebar is reduced in size to make room
for extra keys on the bottom row. These keys typically allow the users to change the current input
mode. Note that even though some of these Japanese and Korean keys occupy the same physical location on the
keyboard, they use different <code>code</code> values.
</p>
<figure id="figure-function-row-a">
<img src="images/functional-row-a.svg" width="700" height="160" alt="Comparison of the lower row of functional keys">
<figcaption>Fig. <span class="figno">15</span> <span class="fig-title">Comparison of the lower row of functional keys on different keyboards</span></figcaption>
</figure>
<table id="table-key-code-alphanumeric-functional-2" class="data-table full-width">