Editing
Scancode
(section)
From Deskthority Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== USB HID Usage Codes == === Keyboard page (0x07) === Y = Part of official spec T = Tested working but not in spec <sub><blank></sub> = Not part of spec , not tested {| class="wikitable" ! colspan="2" | USB ! colspan="3" | OS support |- ! Code !! Key Name !! PC/MS Windows !! Macintosh !! UNIX/Linux |- | 00 || Reserved || Y || Y || Y |- | 01 || Keyboard ErrorRollOver<ref name="ErrorKey" group="Notes">ErrorRollOver, POSTFail and ErrorUndefined are status codes, not physical keys.</ref> || Y || Y || Y |- | 02 || Keyboard POSTFail<ref name="ErrorKey" group="Notes"/> || Y || Y || Y |- | 03 || Keyboard ErrorUndefined<ref name="ErrorKey" group="Notes"/> || Y || Y || Y |- | 04 || Keyboard a and A || Y || Y || Y |- | 05 || Keyboard b and B || Y || Y || Y |- | 06 || Keyboard c and C || Y || Y || Y |- | 07 || Keyboard d and D || Y || Y || Y |- | 08 || Keyboard e and E || Y || Y || Y |- | 09 || Keyboard f and F || Y || Y || Y |- | 0a || Keyboard g and G || Y || Y || Y |- | 0b || Keyboard h and H || Y || Y || Y |- | 0c || Keyboard i and I || Y || Y || Y |- | 0d || Keyboard j and J || Y || Y || Y |- | 0e || Keyboard k and K || Y || Y || Y |- | 0f || Keyboard l and L || Y || Y || Y |- | 10 || Keyboard m and M || Y || Y || Y |- | 11 || Keyboard n and N || Y || Y || Y |- | 12 || Keyboard o and O || Y || Y || Y |- | 13 || Keyboard p and P || Y || Y || Y |- | 14 || Keyboard q and Q || Y || Y || Y |- | 15 || Keyboard r and R || Y || Y || Y |- | 16 || Keyboard s and S || Y || Y || Y |- | 17 || Keyboard t and T || Y || Y || Y |- | 18 || Keyboard u and U || Y || Y || Y |- | 19 || Keyboard v and V || Y || Y || Y |- | 1a || Keyboard w and W || Y || Y || Y |- | 1b || Keyboard x and X || Y || Y || Y |- | 1c || Keyboard y and Y || Y || Y || Y |- | 1d || Keyboard z and Z || Y || Y || Y |- | 1e || Keyboard 1 and ! || Y || Y || Y |- | 1f || Keyboard 2 and @ || Y || Y || Y |- | 20 || Keyboard 3 and # || Y || Y || Y |- | 21 || Keyboard 4 and $ || Y || Y || Y |- | 22 || Keyboard 5 and % || Y || Y || Y |- | 23 || Keyboard 6 and ^ || Y || Y || Y |- | 24 || Keyboard 7 and & || Y || Y || Y |- | 25 || Keyboard 8 and * || Y || Y || Y |- | 26 || Keyboard 9 and ( || Y || Y || Y |- | 27 || Keyboard 0 and ) || Y || Y || Y |- | 28 || [[Return key|Keyboard Return]] || '''Enter''' || '''Return''' || '''Return''' |- | 29 || [[Escape key|Keyboard Escape]] || Y || Y || Y |- | 2a || [[Backspace key|Keyboard Delete (Backspace)]] || '''β Backspace''' || '''β« Delete''' || Y |- | 2b || [[Tab key|Keyboard Tab]] || Y || Y || Y |- | 2c || [[Space bar|Keyboard Spacebar]] || Y || Y || Y |- | 2d || Keyboard - and _ || Y || Y || Y |- | 2e || Keyboard = and +|| Y || Y || Y |- | 2f || Keyboard [ and { || Y || Y || Y |- | 30 || Keyboard ] and } || Y || Y || Y |- | 31 || Keyboard \ and | || Y || Y || Y |- | 32 | Keyboard Int' # and ~ | colspan="3" | Intended for key next to vertical Return key. Keyboard Backslash (0x31) is used instead.<ref name="LinuxBug" group="Notes">Some versions of Linux are known to exhibit bugs if a report contains 'Keyboard Int # and ~' (0x32) or 'Keyboard Clear'(0x9a)</ref> |- | 33 || Keyboard ; and : || Y || Y || Y |- | 34 || Keyboard β and β || Y || Y || Y |- | 35 || Keyboard Grave Accent and Tilde || Y || Y || Y |- | 36 || Keyboard, and < || Y || Y || Y |- | 37 || Keyboard . and > || Y || Y || Y |- | 38 || Keyboard / and ? || Y || Y || Y |- | 39 || [[Caps lock|Keyboard Caps Lock]] || Y || Y || Y |- | 3a || Keyboard F1 || Y || Y || Y |- | 3b || Keyboard F2 || Y || Y || Y |- | 3c || Keyboard F3 || Y || Y || Y |- | 3d || Keyboard F4 || Y || Y || Y |- | 3e || Keyboard F5 || Y || Y || Y |- | 3f || Keyboard F6 || Y || Y || Y |- | 40 || Keyboard F7 || Y || Y || Y |- | 41 || Keyboard F8 || Y || Y || Y |- | 42 || Keyboard F9 || Y || Y || Y |- | 43 || Keyboard F10 || Y || Y || Y |- | 44 || Keyboard F11 || Y || Y || Y |- | 45 || Keyboard F12 || Y || Y || Y |- | 46 || [[Print screen key|Keyboard PrintScreen]] || Y || Y || Y |- | 47 || [[Scroll lock|Keyboard Scroll Lock]] || Y || Y || Y |- | 48 || Keyboard Pause || Y || Y || Y |- | 49 || [[Insert key|Keyboard Insert]] || Y || Y || Y |- | 4a || Keyboard Home || Y || Y || Y |- | 4b || Keyboard PageUp || Y || Y || Y |- | 4c || Keyboard Delete(forward) || Y || Y || Y |- | 4d || Keyboard End || Y || Y || Y |- | 4e || Keyboard PageDown || Y || Y || Y |- | 4f || Keyboard RightArrow || Y || Y || Y |- | 50 || Keyboard LeftArrow || Y || Y || Y |- | 51 || Keyboard DownArrow || Y || Y || Y |- | 52 || Keyboard UpArrow || Y || Y || Y |- | 53 || Keypad Num Lock and Clear || [[Num lock]] || '''Clear''' || Y |- | 54 || Keypad / || Y || Y || Y |- | 55 || Keypad * || Y || Y || Y |- | 56 || Keypad - || Y || Y || Y |- | 57 || Keypad + || Y || Y || Y |- | 58 || Keypad ENTER || Y || '''Enter''' || Y |- | 59 || Keypad 1 and End || Y || Y || Y |- | 5a || Keypad 2 and Down Arrow || Y || Y || Y |- | 5b || Keypad 3 and PageDn || Y || Y || Y |- | 5c || Keypad 4 and Left Arrow || Y || Y || Y |- | 5d || Keypad 5 || Y || Y || Y |- | 5e || Keypad 6 and Right Arrow || Y || Y || Y |- | 5f || Keypad 7 and Home || Y || Y || Y |- | 60 || Keypad 8 and Up Arrow || Y || Y || Y |- | 61 || Keypad 9 and PageUp || Y || Y || Y |- | 62 || Keypad 0 and Insert || Y || Y || Y |- | 63 || Keypad . and Delete || Y || Y || Y |- | 64 || Keyboard Int, \ and | (Between left Shift and Z on ISO layouts)|| Y || Y || Y |- | 65 || Keyboard Application || [[Menu key|Menu]] || || [[Compose key|Compose]] or [[Menu key|Menu]]<ref name="xconfigurable" group="Notes"> The 'Keyboard Application' key is configurable under Unix/Linux, with different defaults in different desktop environments. [[Sun Type 6]] and [[Sun Type 7]]'s [[Compose key]] sends this code.</ref> |- | 66 || Keyboard Power<ref name="PowerKey" group="Notes">According to the spec, 'Keyboard Power' is only a status code, not a physical key.</ref> || || Y || Y |- | 67 || Keypad = || <ref name="MSCheat" group="Notes"/> || Y || |- | 68 || Keyboard F13 || T || Y<ref name="aaplfn" group="Notes">Full-size USB keyboards from Apple have additional function keys that the more compact keyboards lack. The [[Apple Pro Keyboard]] introduced F13..F15. The full-sized [[Apple Aluminium Keyboard]] introduced F16 to F19 above the numeric keypad. Those are seldom used by Mac apps, and can be mapped to specific functions in MacOS. F14 and F15 come mapped to brightness controls in some versions of MacOS, but that can be changed.</ref> || |- | 69 || Keyboard F14 || || Y<ref name="aaplfn" group="Notes"/> || |- | 6a || Keyboard F15 || || Y<ref name="aaplfn" group="Notes"/> || |- | 6b || Keyboard F16 || || T<ref name="aaplfn" group="Notes"/> || |- | 6c || Keyboard F17 || || T<ref name="aaplfn" group="Notes"/> || |- | 6d || Keyboard F18 || || T<ref name="aaplfn" group="Notes"/> || |- | 6e || Keyboard F19 || || T<ref name="aaplfn" group="Notes"/> || |- | 6f || Keyboard F20 || || || |- | 70 || Keyboard F21 || || || |- | 71 || Keyboard F22 || || || |- | 72 || Keyboard F23 || || || |- | 73 || Keyboard F24 || || || |- | 74 || Keyboard Execute || || || '''Open'''<ref name="SunSol" group="Notes">The [[Fun cluster|named function keys]] on [[Sun Type 6]] and [[Sun Type 7]] keyboards. Mapping from [http://kentie.net/article/sunkbd/sun%20keys.txt Kenti.net]. </ref> |- | 75 || Keyboard Help || || || '''Help'''<ref name="SunSol" group="Notes"/> |- | 76 || Keyboard Menu || || || '''Props'''<ref name="SunSol" group="Notes"/> |- | 77 || Keyboard Select|| || || '''Front'''<ref name="SunSol" group="Notes"/> |- | 78 || Keyboard Stop || || || '''Stop'''<ref name="SunSol" group="Notes"/> |- | 79 || Keyboard Again|| || || '''Again'''<ref name="SunSol" group="Notes"/> |- | 7a || Keyboard Undo || || || '''Undo'''<ref name="SunSol" group="Notes"/> |- | 7b || Keyboard Cut || || || '''Cut'''<ref name="SunSol" group="Notes"/> |- | 7c || Keyboard Copy || || || '''Copy'''<ref name="SunSol" group="Notes"/> |- | 7d || Keyboard Paste || || || '''Paste'''<ref name="SunSol" group="Notes"/> |- | 7e || Keyboard Find || || || '''Find'''<ref name="SunSol" group="Notes"/> |- | 7f || Keyboard Mute || || || Y<ref name="SunSol2" group="Notes">Media keys in top/right corner on [[Sun Type 6]] and [[Sun Type 7]]</ref> |- | 80 || Keyboard Volume Up || || || Y<ref name="SunSol2" group="Notes"/> |- | 81 || Keyboard Volume Down || || || Y<ref name="SunSol2" group="Notes"/> |- | 82 || Locking Caps Lock || || || |- | 83 || Locking Num Lock || || || |- | 84 || Locking Scroll Lock || || || |- | 85 || Keypad ,<ref name="KeypadThousands" group="Notes">Brazilian layout uses this key for thousands-separator. The 'Keypad +' key and this key together occupy the same space as a vertical 'Keypad +' key does on most other PC keyboards.</ref> || Keypad '''.''' (Brazil) || || |- | 86 || Keypad Equals Sign<br/>Equals sign on AS/400 || || || |- | 87 || Keyboard INT1<br />Ro || '''\'''/'''γ''' (Japanese)<br>'''/''' (Brazil) || '''γ''' (Japanese) || Y |- | 88 || Keyboard INT2<br>Kana || '''γ«γΏγ«γ/γ²γγγͺ/γγΌγε''' (Japanese) || Y || Y |- | 89 || Keyboard INT3<br>Yen || '''Β₯''' (Japanese) || '''Β₯''' (Japanese) || Y |- | 8a || Keyboard INT4<br>Henkan (Conversion) || '''ε€ζ'''/'''XFER''' (Japanese) || Y || Y |- | 8b || Keyboard INT5<br>Muhenkan (Non-conversion) || '''η‘ε€ζ'''/'''NFER''' (Japanese) || Y || Y |- | 8c || Keyboard INT6<br/>PC98 Keypad comma || || || |- | 8d || Keyboard INT7<br/>PC98 Toggle single-byte/double-byte mode || || || |- | 8e || Keyboard INT8 || || || |- | 8f || Keyboard INT9 || || || |- | 90 || Keyboard LANG1<br>Hangul/English toggle (Korean) || '''ν/μ''' (Korean) || '''ν/μ''' (Korean)<br/>'''γγͺ''' (Japanese) || |- | 91 || Keyboard LANG2<br>Hanja conversion (Korean) || '''νμ''' (Korean) || '''νμ''' (Korean)<br/>'''θ±ζ°''' (Japanese) || |- | 92 || Keyboard LANG3<br>PC98 Katakana || || || |- | 93 || Keyboard LANG4<br>PC98 Hiragana || || || |- | 94 || Keyboard LANG5<br>PC98 "Kaku": Hankaku/Zenkaku ("Full-size"/"Half-size"/"Kanji") when not on Keyboard Tilde key (Japanese) || || || |- | 95 || Keyboard LANG6<br>PC98 Furigana (Hiragana as pronunciation-help above Kanji) || || || |- | 96 || Keyboard LANG7 || || || |- | 97 || Keyboard LANG8 || || || |- | 98 || Keyboard LANG9 || || || |- | 99 || Keyboard Alternative Erase ([[Erase-Eaze key|Erase-Eaze]]) || || || |- | 9a || Keyboard SysReq/Attention<ref name="NotMod" group="Notes">Usage of keys is not modified by the state of the Control, Alt, Shift or Num Lock keys</ref> || || || |- | 9b || Keyboard Cancel || || || |- | 9c || Keyboard Clear || || || <ref name="LinuxBug" group="Notes"/> |- | 9d || Keyboard Prior|| || || |- | 9e || Keyboard Return || || || |- | 9f || Keyboard Separator || || || |- | a0 || Keyboard Out || || || |- | a1 || Keyboard Oper || || || |- | a2 || Keyboard Clear/Again || || || |- | a3 || Keyboard ClSel/Props || || || |- | a4 || Keyboard ExSel || || || |- | a5 || Reserved || || || |- | a6 || Reserved || || || |- | a7 || Reserved || || || |- | a8 || Reserved || || || |- | a9 || Reserved || || || |- | aa || Reserved || || || |- | ab || Reserved || || || |- | ac || Reserved || || || |- | ad || Reserved || || || |- | ae || Reserved || || || |- | af || Reserved || || || |- | b0 || Keypad 00 || || || |- | b1 || Keypad 000 || || || |- | b2 || Thousands Separator || || || |- | b3 || Decimal Separator || || || |- | b4 || Currency Unit<ref name="Currency" group="Notes">Based on OS current language settings, e.g Β£ for GB $ for US, (period) for US/GB decimal (comma) for Int</ref> || || || |- | b5 || Currency Sub-unit<ref name="Currency" group="Notes"/> || || || |- | b6 || Keypad ( || <ref name="MSCheat" group="Notes">Some of Microsoft's own keyboards send Keypad =, Keypad ( and Keypad ) on a separate "Generic HID" interface, not on the main "Keyboard" interface. Those are not supported by MS Windows itself but require a special driver.</ref> || || |- | b7 || Keypad ) || <ref name="MSCheat" group="Notes"/> || || |- | b8 || Keypad { || || || |- | b9 || Keypad } || || || |- | ba || Keypad Tab || || || |- | bb || Keypad Backspace || || || |- | bc || Keypad A || || || |- | bd || Keypad B || || || |- | be || Keypad C || || || |- | bf || Keypad D || || || |- | c0 || Keypad E || || || |- | c1 || Keypad F || || || |- | c2 || Keypad XOR || || || |- | c3 || Keypad ^ || || || |- | c4 || Keypad % || || || |- | c5 || Keypad < || || || |- | c6 || Keypad > || || || |- | c7 || Keypad & || || || |- | c8 || Keypad && || || || |- | c9 || Keypad | || || || |- | ca || Keypad || || || || |- | cb || Keypad : || || || |- | cc || Keypad # || || || |- | cd || Keypad Space || || || |- | ce || Keypad @ || || || |- | cf || Keypad ! || || || |- | d0 || Keypad Memory Store || || || |- | d1 || Keypad Memory Recall || || || |- | d2 || Keypad Memory Clear || || || |- | d3 || Keypad Memory Add || || || |- | d4 || Keypad Memory Subtract || || || |- | d5 || Keypad Memory Multiply || || || |- | d6 || Keypad Memory Divide || || || |- | d7 || Keypad +/- || || || |- | d8 || Keypad Clear || || || |- | d9 || Keypad Clear Entry || || || |- | da || Keypad Binary || || || |- | db || Keypad Octal || || || |- | dc || Keypad Decimal || || || |- | dd || Keypad Hexadecimal || || || |- | de || Reserved || || || |- | df || Reserved || || || |- | e0 || Keyboard Left Control || Y || Y || Y |- | e1 || Keyboard Left Shift || Y || Y || Y |- | e2 || Keyboard Left Alt || Y || Y || Y |- | e3 || Keyboard Left GUI || [[Windows key|Windows]] || [[Command key|Command]] || '''Meta'''<ref name="xmeta" group="Notes">'''Meta''' key on [[Sun Type 6]] and [[Sun Type 7]]. Defaults to '''Super''' in some desktop environments.</ref> |- | e4 || Keyboard Right Control || Y || Y || Y |- | e5 || Keyboard Right Shift || Y || Y || Y |- | e6 || Keyboard Right Alt || Y || Y || Y |- | e7 || Keyboard Right GUI || [[Windows key|Windows]] || [[Command key|Command]] || '''Meta'''<ref name="xmeta" group="Notes"/> |- | e8 to FFFF || Reserved || || || |} ===Notes=== <references group="Notes"/>
Summary:
Please note that all contributions to Deskthority Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
Edit source
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Deskthority forum
Support Deskthority
Search
Main categories
Guides
Keyboards
Keyboard switches
Keycaps
Keyboard modding
Pointing devices
Brands & companies
Group buys
Other topics
Wiki info & links
Recent changes
Random page
All pages
Deskthority wiki help
MediaWiki help
Tools
What links here
Related changes
Special pages
Page information