⌨️

ZMK Studioのキーコード を一覧にまとめてみた

に公開

はじめに

ZMKのキーボードでキーマップを設定するには、A. コード直接編集, B. KeymapEditor, C. ZMK Studio 等の方法があります。[1]
A, Bは自由度がありますがファームウェアを作成して入れ直す必要があり、初心者には敷居が高いです。
Cは細かい設定はできませんが、Webまたはアプリから設定でき、特にアプリはUSBを接続せずにBluetooth経由で設定できる利点があります。
しかしながら、プルダウンメニューからキー(の説明文)を選択するという、とても使い難いGUIとなっており、どのキーがリストのどこにあるか分かりにくいです。

また、Edit Boxに入力すれば絞り込み検索できるのですが[2]、キーワードを知らないと検索できないし、!などの記号での検索もできません。キーマップを設定している最中だから入力できない場合もあると思います。

というわけで、ZMK Studioでのキーマップ設定の手助けに少しでもなるように、ZMK Studioのキーコードを一覧にまとめたいと思います。

キーコードの定義

まずはリスト化の元となる情報を整理します。

ZMKのキーコードの定義

ZMKのキーコードの定義はいくつかのファイルに分かれています。
まず、dt-bindings/zmk/hid_usage_pages.hでpagesと合成用のmacroが定義されています。
https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/hid_usage_pages.h#L13-L27

各pagesのkeycodeはdt-bindings/zmk/hid_usage.hで定義されていて、
https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/hid_usage.h#L290-L295

dt-bindings/zmk/keys.hで、pagesとkeycodeを合成したものを、コード直接編集で指定するキーコードとして定義されています。
https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/keys.h#L24-L28

hid_usage.hで定義されたkeycodeは、keys.hで全ては定義されていないようです。

余談ですが、ZMKでは!などの記号のキーコードを直接設定できるのですが、LS(kc)のマクロとなっているようですね。
https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/keys.h#L102-L110

ZMK Studioのキーコードの定義

ZMK Studioの各Keyはkeyboard-and-consumer-usage-tables.jsonで定義されています。

https://github.com/zmkfirmware/zmk-studio/blob/f949d5e5f5f2d32f35b9343a439294487a62653e/src/keyboard-and-consumer-usage-tables.json#L3161-L3165
https://github.com/zmkfirmware/zmk-studio/blob/f949d5e5f5f2d32f35b9343a439294487a62653e/src/keyboard-and-consumer-usage-tables.json#L3187-L3193

pageのIdとkeyのIdがZMKのキーコードと対になっています。NameがZMK Studioのプルダウンで表示されているもので、プルダウンの順序はこの定義の順序になっています。
hid_usage.hの定義を元に作成されているようで、keys.hで定義されていないキーも含まれています。

ZMK Documentのキーコードの定義

ZMKのキーコードはZMK Documentでも定義されています。Nameskeys.hで定義されているものとなります。

ZMK Studio キーコード一覧

上記の情報を元にZMK Studioのキーコード一覧を表にまとめました。表の項目は以下となります。

項目名 概要
Id hid_usage.hのId (16進数化)
ZMK Studio ZMK Studioの表記
Contents ZMK Document のcontents
Names ZMK Document のName (keys.hの定義)
Description ZMK Document のDescription

Id順になっているので、ZMK Studioのプルダウン順序通りになっています。
設定したいキーをNameやDescriptionから探して、そのキーがZMK Studioのプルダウンのどのあたりにあるか把握して探して設定するか、Edit Boxにキーワードを入力して絞り込んで設定するという使い方を想定しています。

Keyboard/Keypad

Id ZMK Studio Contents Names Description
0x04 Keyboard A Letters A a and A
0x05 Keyboard B Letters B b and B
0x06 Keyboard C Letters C c and C
0x07 Keyboard D Letters D d and D
0x08 Keyboard E Letters E e and E
0x09 Keyboard F Letters F f and F
0x0A Keyboard G Letters G g and G
0x0B Keyboard H Letters H h and H
0x0C Keyboard I Letters I i and I
0x0D Keyboard J Letters J j and J
0x0E Keyboard K Letters K k and K
0x0F Keyboard L Letters L l and L
0x10 Keyboard M Letters M m and M
0x11 Keyboard N Letters N n and N
0x12 Keyboard O Letters O o and O
0x13 Keyboard P Letters P p and P
0x14 Keyboard Q Letters Q q and Q
0x15 Keyboard R Letters R r and R
0x16 Keyboard S Letters S s and S
0x17 Keyboard T Letters T t and T
0x18 Keyboard U Letters U u and U
0x19 Keyboard V Letters V v and V
0x1A Keyboard W Letters W w and W
0x1B Keyboard X Letters X x and X
0x1C Keyboard Y Letters Y y and Y
0x1D Keyboard Z Letters Z z and Z
0x1E Keyboard 1 and Bang Numbers NUMBER_1
N1
1 and ! (EXCLAMATION)
0x1F Keyboard 2 and At Numbers NUMBER_2
N2
2 and @ (AT SIGN)
0x20 Keyboard 3 and Hash Numbers NUMBER_3
N3
3 and # (HASH / POUND)
0x21 Keyboard 4 and Dollar Numbers NUMBER_4
N4
4 and $ (DOLLAR)
0x22 Keyboard 5 and Percent Numbers NUMBER_5
N5
5 and % (PERCENT)
0x23 Keyboard 6 and Caret Numbers NUMBER_6
N6
6 and ^ (CARET)
0x24 Keyboard 7 and Ampersand Numbers NUMBER_7
N7
7 and & (AMPERSAND)
0x25 Keyboard 8 and Star Numbers NUMBER_8
N8
8 and * (ASTERISK / STAR)
0x26 Keyboard 9 and Left Bracket Numbers NUMBER_9
N9
9 and ( (LEFT PARENTHESIS)
0x27 Keyboard 0 and Right Bracket Numbers NUMBER_0
N0
0 and ) (RIGHT PARENTHESIS)
0x28 Keyboard Return Enter Control RETURN
ENTER
RET
Return (Enter)
0x29 Keyboard Escape Control ESCAPE
ESC
Escape
0x2A Keyboard Delete Control BACKSPACE
BSPC
Backspace
0x2B Keyboard Tab Control TAB Tab
0x2C Keyboard Spacebar Control SPACE Space
0x2D Keyboard Dash and Underscore Symbols MINUS - (MINUS)  and  _ (UNDERSCORE)
0x2E Keyboard Equals and Plus Symbols EQUAL = (EQUAL)  and  + (PLUS)
0x2F Keyboard Left Brace Symbols LEFT_BRACKET
LBKT
[ (LEFT BRACKET)  and  { (LEFT BRACE)
0x30 Keyboard Right Brace Symbols RIGHT_BRACKET
RBKT
] (RIGHT BRACKET)  and  } (RIGHT BRACE)
0x31 Keyboard Backslash and Pipe Symbols BACKSLASH
BSLH
\ (BACKSLASH)  and  | (PIPE)
0x32 Keyboard Non-US Hash and Tilde Symbols NON_US_BACKSLASH
NON_US_BSLH
NUBS
Non-US  \ (BACKSLASH)  and  | (PIPE)
0x33 Keyboard SemiColon and Colon Symbols SEMICOLON
SEMI
; (SEMICOLON)  and  : (COLON)
0x34 Keyboard Left Apos and Double Symbols SINGLE_QUOTE
SQT
APOSTROPHE
APOS
' (APOSTROPHE)  and  " (QUOTE DOUBLE)
0x35 Keyboard Grave Accent and Tilde Symbols GRAVE ` (GRAVE ACCENT)  and  ~ (TILDE)
0x36 Keyboard Comma and LessThan Symbols COMMA , (COMMA)  and  < (LESS THAN)
0x37 Keyboard Period and GreaterThan Symbols PERIOD
DOT
. (PERIOD)  and  > (GREATER THAN)
0x38 Keyboard ForwardSlash and QuestionMark Symbols SLASH
FSLH
/ (FORWARD SLASH)  and  ? (QUESTION MARK)
0x39 Keyboard Caps Lock Locks CAPSLOCK
CAPS
CLCK
Caps Lock
0x3A Keyboard F1 F Keys F1 F1
0x3B Keyboard F2 F Keys F2 F2
0x3C Keyboard F3 F Keys F3 F3
0x3D Keyboard F4 F Keys F4 F4
0x3E Keyboard F5 F Keys F5 F5
0x3F Keyboard F6 F Keys F6 F6
0x40 Keyboard F7 F Keys F7 F7
0x41 Keyboard F8 F Keys F8 F8
0x42 Keyboard F9 F Keys F9 F9
0x43 Keyboard F10 F Keys F10 F10
0x44 Keyboard F11 F Keys F11 F11
0x45 Keyboard F12 F Keys F12 F12
0x46 Keyboard PrintScreen Miscellaneous PRINTSCREEN
PSCRN
Print Screen
0x47 Keyboard Scroll Lock Locks SCROLLLOCK
SLCK
Scroll Lock
0x48 Keyboard Pause Miscellaneous PAUSE_BREAK Pause / Break
0x49 Keyboard Insert Control INSERT
INS
Insert
0x4A Keyboard Home Navigation HOME Home
0x4B Keyboard PageUp Navigation PAGE_UP
PG_UP
Page Up
0x4C Keyboard Delete Forward Control DELETE
DEL
Delete
0x4D Keyboard End Navigation END End
0x4E Keyboard PageDown Navigation PAGE_DOWN
PG_DN
Page Down
0x4F Keyboard RightArrow Navigation RIGHT_ARROW
RIGHT
(RIGHT ARROW)
0x50 Keyboard LeftArrow Navigation LEFT_ARROW
LEFT
(LEFT ARROW)
0x51 Keyboard DownArrow Navigation DOWN_ARROW
DOWN
(DOWN ARROW)
0x52 Keyboard UpArrow Navigation UP_ARROW
UP
(UP ARROW)
0x53 Keypad Num Lock and Clear Keypad KP_NUMLOCK
KP_NUM
KP_NLCK
Numlock and Clear
0x54 Keypad ForwardSlash Keypad Symbols KP_DIVIDE
KP_SLASH
/ (DIVIDE)
0x55 Keypad Star Keypad Symbols KP_MULTIPLY
KP_ASTERISK
* (MULTIPLY)
0x56 Keypad Dash Keypad Symbols KP_MINUS
KP_SUBTRACT
- (MINUS)
0x57 Keypad Plus Keypad Symbols KP_PLUS + (PLUS)
0x58 Keypad ENTER Keypad KP_ENTER Enter
0x59 Keypad 1 and End Keypad Numbers KP_NUMBER_1
KP_N1
Keypad 1 and End
0x5A Keypad 2 and Down Arrow Keypad Numbers KP_NUMBER_2
KP_N2
Keypad 2 and Down Arrow
0x5B Keypad 3 and PageDn Keypad Numbers KP_NUMBER_3
KP_N3
Keypad 3 and Page Down
0x5C Keypad 4 and Left Arrow Keypad Numbers KP_NUMBER_4
KP_N4
Keypad 4 and Left Arrow
0x5D Keypad 5 Keypad Numbers KP_NUMBER_5
KP_N5
Keypad 5
0x5E Keypad 6 and Right Arrow Keypad Numbers KP_NUMBER_6
KP_N6
Keypad 6 and Right Arrow
0x5F Keypad 7 and Home Keypad Numbers KP_NUMBER_7
KP_N7
Keypad 7 and Home
0x60 Keypad 8 and Up Arrow Keypad Numbers KP_NUMBER_8
KP_N8
Keypad 8 and Up Arrow
0x61 Keypad 9 and PageUp Keypad Numbers KP_NUMBER_9
KP_N9
Keypad 9 and Page Up
0x62 Keypad 0 and Insert Keypad Numbers KP_NUMBER_0
KP_N0
Keypad 0 and Insert
0x63 Keypad Period and Delete Keypad Symbols KP_DOT . (DOT)  and Delete
0x64 Keyboard Non-US Backslash and Pipe Symbols NON_US_BACKSLASH
NON_US_BSLH
NUBS
Non-US  \ (BACKSLASH)  and  | (PIPE)
0x65 Keyboard Application Navigation K_APPLICATION
K_APP
K_CONTEXT_MENU
K_CMENU
Application (Context Menu)
0x66 Keyboard Power Power K_POWER
K_PWR
Power (Keyboard)
0x67 Keypad Equals Keypad Symbols KP_EQUAL = EQUAL
0x68 Keyboard F13 F Keys F13 F13
0x69 Keyboard F14 F Keys F14 F14
0x6A Keyboard F15 F Keys F15 F15
0x6B Keyboard F16 F Keys F16 F16
0x6C Keyboard F17 F Keys F17 F17
0x6D Keyboard F18 F Keys F18 F18
0x6E Keyboard F19 F Keys F19 F19
0x6F Keyboard F20 F Keys F20 F20
0x70 Keyboard F21 F Keys F21 F21
0x71 Keyboard F22 F Keys F22 F22
0x72 Keyboard F23 F Keys F23 F23
0x73 Keyboard F24 F Keys F24 F24
0x74 Keyboard Execute Application Controls K_EXECUTE
K_EXEC
Execute (Keyboard)
0x75 Keyboard Help Applications K_HELP Help (Keyboard)
0x76 Keyboard Menu Application Controls K_MENU Menu (Keyboard)
0x77 Keyboard Select Application Controls K_SELECT Select (Keyboard)
0x78 Keyboard Stop Application Controls K_STOP Stop (Keyboard)
0x79 Keyboard Again Editing Undo, Redo K_AGAIN
K_REDO
Again (Keyboard)
0x7A Keyboard Undo Editing Undo, Redo K_UNDO Undo (Keyboard)
0x7B Keyboard Cut Editing Cut, Copy, Paste K_CUT Cut (Keyboard)
0x7C Keyboard Copy Editing Cut, Copy, Paste K_COPY Copy (Keyboard)
0x7D Keyboard Paste Editing Cut, Copy, Paste K_PASTE Paste (Keyboard)
0x7E Keyboard Find Application Controls K_FIND Find (Keyboard)
0x7F Keyboard Mute Media Sound/Volume K_MUTE Mute (Keyboard)
0x80 Keyboard Volume Up Media Sound/Volume K_VOLUME_UP
K_VOL_UP
Volume Up (Keyboard)
0x81 Keyboard Volume Down Media Sound/Volume K_VOLUME_DOWN
K_VOL_DN
Volume Down (Keyboard)
0x82 Keyboard Locking Caps Lock Locks LOCKING_CAPS
LCAPS
Locking Caps Lock
0x83 Keyboard Locking Num Lock Locks LOCKING_NUM
LNLCK
Locking Num Lock
0x84 Keyboard Locking Scroll Lock Locks LOCKING_SCROLL
LSLCK
Locking Scroll Lock
0x85 Keypad Comma Keypad Symbols KP_COMMA , (COMMA)
0x86 Keypad Equal Sign Keypad Symbols KP_EQUAL_AS400 = (EQUAL  (AS/400 keyboads))
0x87 Keyboard International1 International INTERNATIONAL_1
INT1
INT_RO
ろ (International 1)
0x88 Keyboard International2 International INTERNATIONAL_2
INT2
INT_KATAKANAHIRAGANA
INT_KANA
かな (International 2)
0x89 Keyboard International3 International INTERNATIONAL_3
INT3
INT_YEN
¥ (International 3)
0x8A Keyboard International4 International INTERNATIONAL_4
INT4
INT_HENKAN
変換 (International 4)
0x8B Keyboard International5 International INTERNATIONAL_5
INT5
INT_MUHENKAN
無変換 (International 5)
0x8C Keyboard International6 International INTERNATIONAL_6
INT6
INT_KPJPCOMMA
, (カンマ)  (International 6)
0x8D Keyboard International7 International INTERNATIONAL_7
INT7
International 7
0x8E Keyboard International8 International INTERNATIONAL_8
INT8
International 8
0x8F Keyboard International9 International INTERNATIONAL_9
INT9
International 9
0x90 Keyboard LANG1 Language LANGUAGE_1
LANG1
LANG_HANGEUL
한/영 (Language 1)
0x91 Keyboard LANG2 Language LANGUAGE_2
LANG2
LANG_HANJA
한자 (Language 2)
0x92 Keyboard LANG3 Language LANGUAGE_3
LANG3
LANG_KATAKANA
カタカナ (Language 3)
0x93 Keyboard LANG4 Language LANGUAGE_4
LANG4
LANG_HIRAGANA
ひらがな (Language 4)
0x94 Keyboard LANG5 Language LANGUAGE_5
LANG5
LANG_ZENKAKUHANKAKU
半角/全角 (Language 5)
0x95 Keyboard LANG6 Language LANGUAGE_6
LANG6
Language 6
0x96 Keyboard LANG7 Language LANGUAGE_7
LANG7
Language 7
0x97 Keyboard LANG8 Language LANGUAGE_8
LANG8
Language 8
0x98 Keyboard LANG9 Language LANGUAGE_9
LANG9
Language 9
0x99 Keyboard Alternate Erase Miscellaneous ALT_ERASE Alternate Erase
0x9A Keyboard SysReq Attention Miscellaneous SYSREQ
ATTENTION
SysReq / Attention
0x9B Keyboard Cancel Miscellaneous K_CANCEL Cancel (Keyboard)
0x9C Keyboard Clear Miscellaneous CLEAR Clear
0x9D Keyboard Prior Miscellaneous PRIOR Prior
0x9E Keyboard Return Control RETURN2
RET2
Return
0x9F Keyboard Separator Miscellaneous SEPARATOR Separator
0xA0 Keyboard Out Miscellaneous OUT Out
0xA1 Keyboard Oper Miscellaneous OPER Oper
0xA2 Keyboard Clear Again Miscellaneous CLEAR_AGAIN Clear / Again
0xA3 Keyboard CrSel Props Miscellaneous CRSEL CrSel / Props
0xA4 Keyboard ExSel Miscellaneous EXSEL ExSel
0xB0 Keypad Double 0
0xB1 Keypad Triple 0
0xB2 Thousands Separator
0xB3 Decimal Separator
0xB4 Currency Unit
0xB5 Currency Sub-unit
0xB6 Keypad Left Bracket Keypad Symbols KP_LEFT_PARENTHESIS
KP_LPAR
( (LEFT PARENTHESIS)
0xB7 Keypad Right Bracket Keypad Symbols KP_RIGHT_PARENTHESIS
KP_RPAR
) (RIGHT PARENTHESIS)
0xB8 Keypad Left Brace
0xB9 Keypad Right Brace
0xBA Keypad Tab
0xBB Keypad Backspace
0xBC Keypad A
0xBD Keypad B
0xBE Keypad C
0xBF Keypad D
0xC0 Keypad E
0xC1 Keypad F
0xC2 Keypad XOR
0xC3 Keypad Caret
0xC4 Keypad Percentage
0xC5 Keypad Less
0xC6 Keypad Greater
0xC7 Keypad Ampersand
0xC8 Keypad Double Ampersand
0xC9 Keypad Bar
0xCA Keypad Double Bar
0xCB Keypad Colon
0xCC Keypad Hash
0xCD Keypad Space
0xCE Keypad At
0xCF Keypad Bang
0xD0 Keypad Memory Store
0xD1 Keypad Memory Recall
0xD2 Keypad Memory Clear
0xD3 Keypad Memory Add
0xD4 Keypad Memory Subtract
0xD5 Keypad Memory Multiply
0xD6 Keypad Memory Divide
0xD7 Keypad Plus Minus
0xD8 Keypad Clear Keypad KP_CLEAR Clear
0xD9 Keypad Clear Entry
0xDA Keypad Binary
0xDB Keypad Octal
0xDC Keypad Decimal
0xDD Keypad Hexadecimal
0xE0 Keyboard LeftControl Modifiers LEFT_CONTROL
LCTRL
LC(code)
Left Control
0xE1 Keyboard LeftShift Modifiers LEFT_SHIFT
LSHIFT
LSHFT
LS(code)
Left Shift ⇧
0xE2 Keyboard LeftAlt Modifiers LEFT_ALT
LALT
LA(code)
Left Alt
0xE3 Keyboard Left GUI Modifiers LEFT_GUI
LGUI
LG(code)
LEFT_WIN
LWIN
LEFT_COMMAND
LCMD
LEFT_META
LMETA
Left GUI (Windows / Command / Meta)
0xE4 Keyboard RightControl Modifiers RIGHT_CONTROL
RCTRL
RC(code)
Right Control
0xE5 Keyboard RightShift Modifiers RIGHT_SHIFT
RSHIFT
RSHFT
RS(code)
Right Shift ⇧
0xE6 Keyboard RightAlt Modifiers RIGHT_ALT
RALT
RA(code)
Right Alt
0xE7 Keyboard Right GUI Modifiers RIGHT_GUI
RGUI
RG(code)
RIGHT_WIN
RWIN
RIGHT_COMMAND
RCMD
RIGHT_META
RMETA
Right GUI (Windows / Command / Meta)

Consumer

Id ZMK Studio Contents Names Description
0x01 Consumer Control
0x02 Numeric Key Pad
0x03 Programmable Buttons
0x04 Microphone
0x05 Headphone
0x06 Graphic Equalizer
0x20 +10
0x21 +100
0x22 AM/PM
0x30 Power Power C_POWER
C_PWR
Power (Consumer)
0x31 Reset Power C_RESET Reset (Consumer)
0x32 Sleep Power C_SLEEP Sleep (Consumer)
0x33 Sleep After
0x34 Sleep Mode Power C_SLEEP_MODE Sleep Mode (Consumer)
0x35 Illumination
0x36 Function Buttons
0x40 Menu Consumer Menus C_MENU Menu (Consumer Menu)
0x41 Menu Pick Consumer Menus C_MENU_PICK
C_MENU_SELECT
Pick (Consumer Menu)
0x42 Menu Up Consumer Menus C_MENU_UP Up (Consumer Menu)
0x43 Menu Down Consumer Menus C_MENU_DOWN Down (Consumer Menu)
0x44 Menu Left Consumer Menus C_MENU_LEFT Left (Consumer Menu)
0x45 Menu Right Consumer Menus C_MENU_RIGHT Right (Consumer Menu)
0x46 Menu Escape Consumer Menus C_MENU_ESCAPE
C_MENU_ESC
Escape (Consumer Menu)
0x47 Menu Value Increase Consumer Menus C_MENU_INCREASE
C_MENU_INC
Value Increase (Consumer Menu)
0x48 Menu Value Decrease Consumer Menus C_MENU_DECREASE
C_MENU_DEC
Value Decrease (Consumer Menu)
0x60 Data On Screen Media Controls C_DATA_ON_SCREEN Data On Screen (Consumer)
0x61 Closed Caption Media Controls C_CAPTIONS
C_SUBTITLES
Closed Caption (Consumer)
0x62 Closed Caption Select
0x63 VCR/TV
0x64 Broadcast Mode
0x65 Snapshot Media Controls C_SNAPSHOT Snapshot (Consumer)
0x66 Still
0x67 Picture-in-Picture Toggle Media Display C_PIP Picture-in-Picture Toggle (Consumer)
0x68 Picture-in-Picture Swap
0x69 Red Menu Button Consumer Menus C_RED_BUTTON
C_RED
Red Button (Consumer Menu)
0x6A Green Menu Button Consumer Menus C_GREEN_BUTTON
C_GREEN
Green Button (Consumer Menu)
0x6B Blue Menu Button Consumer Menus C_BLUE_BUTTON
C_BLUE
Blue Button (Consumer Menu)
0x6C Yellow Menu Button Consumer Menus C_YELLOW_BUTTON
C_YELLOW
Yellow Button (Consumer Menu)
0x6D Aspect Media Display C_ASPECT Aspect (Consumer)
0x6E 3D Mode Select
0x6F Display Brightness Increment Media Display C_BRIGHTNESS_INC
C_BRI_INC
C_BRI_UP
Increase Brightness (Consumer)
0x70 Display Brightness Decrement Media Display C_BRIGHTNESS_DEC
C_BRI_DEC
C_BRI_DN
Decrease Brightness (Consumer)
0x71 Display Brightness
0x72 Display Backlight Toggle Media Display C_BACKLIGHT_TOGGLE
C_BKLT_TOG
Backlight Toggle (Consumer)
0x73 Display Set Brightness to Minimum Media Display C_BRIGHTNESS_MINIMUM
C_BRI_MIN
Minimum Brightness (Consumer)
0x74 Display Set Brightness to Maximum Media Display C_BRIGHTNESS_MAXIMUM
C_BRI_MAX
Maximum Brightness (Consumer)
0x75 Display Set Auto Brightness Media Display C_BRIGHTNESS_AUTO
C_BRI_AUTO
Auto Brightness (Consumer)
0x76 Camera Access Enabled
0x77 Camera Access Disabled
0x78 Camera Access Toggle
0x79 Keyboard Brightness Increment
0x7A Keyboard Brightness Decrement
0x7B Keyboard Backlight Set Level
0x7C Keyboard Backlight OOC
0x7D Keyboard Backlight Set Minimum
0x7E Keyboard Backlight Set Maximum
0x7F Keyboard Backlight Auto
0x80 Selection
0x81 Assign Selection
0x82 Mode Step Consumer Controls C_MEDIA_STEP
C_MODE_STEP
Mode Step (Consumer Media)
0x83 Recall Last Consumer Controls C_RECALL_LAST
C_CHAN_LAST
Recall Last (Consumer)
0x84 Enter Channel
0x85 Order Movie
0x86 Channel
0x87 Media Selection
0x88 Media Select Computer Consumer Controls C_MEDIA_COMPUTER Computer (Consumer Media)
0x89 Media Select TV Consumer Controls C_MEDIA_TV TV (Consumer Media)
0x8A Media Select WWW Consumer Controls C_MEDIA_WWW WWW (Consumer Media)
0x8B Media Select DVD Consumer Controls C_MEDIA_DVD DVD (Consumer Media)
0x8C Media Select Telephone Consumer Controls C_MEDIA_PHONE Telephone (Consumer Media)
0x8D Media Select Program Guide Consumer Controls C_MEDIA_GUIDE Program Guide (Consumer Media)
0x8E Media Select Video Phone Consumer Controls C_MEDIA_VIDEOPHONE Video Phone (Consumer Media)
0x8F Media Select Games Consumer Controls C_MEDIA_GAMES Games (Consumer Media)
0x90 Media Select Messages Consumer Controls C_MEDIA_MESSAGES Messages (Consumer Media)
0x91 Media Select CD Consumer Controls C_MEDIA_CD CD (Consumer Media)
0x92 Media Select VCR Consumer Controls C_MEDIA_VCR VCR (Consumer Media)
0x93 Media Select Tuner Consumer Controls C_MEDIA_TUNER Tuner (Consumer Media)
0x94 Quit Consumer Controls C_QUIT Quit (Consumer)
0x95 Help Consumer Controls C_HELP Help (Consumer)
0x96 Media Select Tape Consumer Controls C_MEDIA_TAPE Tape (Consumer Media)
0x97 Media Select Cable Consumer Controls C_MEDIA_CABLE Cable (Consumer Media)
0x98 Media Select Satellite Consumer Controls C_MEDIA_SATELLITE Satellite (Consumer Media)
0x99 Media Select Security
0x9A Media Select Home Consumer Controls C_MEDIA_HOME Home (Consumer Media)
0x9B Media Select Call
0x9C Channel Increment Consumer Controls C_CHANNEL_INC
C_CHAN_INC
Channel Increment (Consumer)
0x9D Channel Decrement Consumer Controls C_CHANNEL_DEC
C_CHAN_DEC
Channel Decrement (Consumer)
0x9E Media Select SAP
0xA0 VCR Plus Consumer Controls C_MEDIA_VCR_PLUS VCR Plus (Consumer Media)
0xA1 Once
0xA2 Daily
0xA3 Weekly
0xA4 Monthly
0xB0 Play Media Controls C_PLAY Play (Consumer)
0xB1 Pause Media Controls C_PAUSE Pause (Consumer)
0xB2 Record Media Controls C_RECORD
C_REC
Record (Consumer)
0xB3 Fast Forward Media Controls C_FAST_FORWARD
C_FF
Fast Forward (Consumer)
0xB4 Rewind Media Controls C_REWIND
C_RW
Rewind (Consumer)
0xB5 Scan Next Track Media Controls C_NEXT Next (Consumer)
0xB6 Scan Previous Track Media Controls C_PREVIOUS
C_PREV
Previous (Consumer)
0xB7 Stop Media Controls C_STOP Stop (Consumer)
0xB8 Eject Media Controls C_EJECT Eject (Consumer)
0xB9 Random Play Media Controls C_RANDOM_PLAY
C_SHUFFLE
Random Play (Consumer)
0xBA Select Disc
0xBB Enter Disc
0xBC Repeat Media Controls C_REPEAT Repeat (Consumer)
0xBD Tracking
0xBE Track Normal
0xBF Slow Tracking Media Controls C_SLOW_TRACKING
C_SLOW2
Slow Tracking (Consumer)
0xC0 Frame Forward
0xC1 Frame Back
0xC2 Mark
0xC3 Clear Mark
0xC4 Repeat From Mark
0xC5 Return To Mark
0xC6 Search Mark Forward
0xC7 Search Mark Backwards
0xC8 Counter Reset
0xC9 Show Counter
0xCA Tracking Increment
0xCB Tracking Decrement
0xCC Stop/Eject Media Controls C_STOP_EJECT Stop / Eject (Consumer)
0xCD Play/Pause Media Controls C_PLAY_PAUSE
C_PP
Play / Pause (Consumer)
0xCE Play/Skip
0xCF Voice Command Application Controls C_VOICE_COMMAND Voice Command (Consumer)
0xD0 Invoke Capture Interface
0xD1 Start or Stop Game Recording
0xD2 Historical Game Capture
0xD3 Capture Game Screenshot
0xD4 Show or Hide Recording Indicator
0xD5 Start or Stop Microphone Capture
0xD6 Start or Stop Camera Capture
0xD7 Start or Stop Game Broadcast
0xD8 Start or Stop Voice Dictation Session
0xD9 Invoke/Dismiss Emoji Picker
0xE0 Volume
0xE1 Balance
0xE2 Mute Media Sound/Volume C_MUTE Mute (Consumer)
0xE3 Bass Media Sound/Volume C_BASS_BOOST Bass Boost (Consumer)
0xE4 Treble
0xE5 Bass Boost
0xE6 Surround Mode
0xE7 Loudness
0xE8 MPX
0xE9 Volume Increment Media Sound/Volume C_VOLUME_UP
C_VOL_UP
Volume Up (Consumer)
0xEA Volume Decrement Media Sound/Volume C_VOLUME_DOWN
C_VOL_DN
Volume Down (Consumer)
0xF0 Speed Select
0xF1 Playback Speed
0xF2 Standard Play
0xF3 Long Play
0xF4 Extended Play
0xF5 Slow Media Controls C_SLOW Slow (Consumer)
0x100 Fan Enable
0x101 Fan Speed
0x102 Light Enable
0x103 Light Illumination Level
0x104 Climate Control Enable
0x105 Room Temperature
0x106 Security Enable
0x107 Fire Alarm
0x108 Police Alarm
0x109 Proximity
0x10A Motion
0x10B Duress Alarm
0x10C Holdup Alarm
0x10D Medical Alarm
0x150 Balance Right
0x151 Balance Left
0x152 Bass Increment
0x153 Bass Decrement
0x154 Treble Increment
0x155 Treble Decrement
0x160 Speaker System
0x161 Channel Left
0x162 Channel Right
0x163 Channel Center
0x164 Channel Front
0x165 Channel Center Front
0x166 Channel Side
0x167 Channel Surround
0x168 Channel Low Frequency Enhancement
0x169 Channel Top
0x16A Channel Unknown
0x170 Sub-channel
0x171 Sub-channel Increment
0x172 Sub-channel Decrement
0x173 Alternate Audio Increment Media Sound/Volume C_ALTERNATE_AUDIO_INCREMENT
C_ALT_AUDIO_INC
Alternate Audio Increment (Consumer)
0x174 Alternate Audio Decrement
0x180 Application Launch Buttons
0x181 AL Launch Button Configuration Tool
0x182 AL Programmable Button Configuration
0x183 AL Consumer Control Configuration Applications C_AL_CCC Consumer Control Configuration (Consumer AL)
0x184 AL Word Processor Applications C_AL_WORD Word Processor (Consumer AL)
0x185 AL Text Editor Applications C_AL_TEXT_EDITOR Text Editor (Consumer AL)
0x186 AL Spreadsheet Applications C_AL_SPREADSHEET
C_AL_SHEET
Spreadsheet (Consumer AL)
0x187 AL Graphics Editor Applications C_AL_GRAPHICS_EDITOR Graphics Editor (Consumer AL)
0x188 AL Presentation App Applications C_AL_PRESENTATION Presentation (Consumer AL)
0x189 AL Database App Applications C_AL_DATABASE
C_AL_DB
Database App (Consumer AL)
0x18A AL Email Reader Applications C_AL_EMAIL
C_AL_MAIL
Email Reader (Consumer AL)
0x18B AL Newsreader Applications C_AL_NEWS Newsreader (Consumer AL)
0x18C AL Voicemail Applications C_AL_VOICEMAIL Voicemail (Consumer AL)
0x18D AL Contacts/Address Book Applications C_AL_CONTACTS
C_AL_ADDRESS_BOOK
Contacts / Address Book (Consumer AL)
0x18E AL Calendar/Schedule Applications C_AL_CALENDAR
C_AL_CAL
Calendar / Schedule (Consumer AL)
0x18F AL Task/Project Manager Applications C_AL_TASK_MANAGER Task / Project Manager (Consumer AL)
0x190 AL Log/Journal/Timecard Applications C_AL_JOURNAL Log / Journal / Timecard (Consumer AL)
0x191 AL Checkbook/Finance Applications C_AL_FINANCE Checkbook / Finance (Consumer AL)
0x192 AL Calculator Applications C_AL_CALCULATOR
C_AL_CALC
Calculator (Consumer AL)
0x193 AL A/V Capture/Playback Applications C_AL_AV_CAPTURE_PLAYBACK A/V Capture / Playback (Consumer AL)
0x194 AL Local Machine Browser Applications C_AL_MY_COMPUTER Local Machine Browser (Consumer AL)
0x195 AL LAN/WAN Browser
0x196 AL Internet Browser Applications C_AL_WWW Internet Browser (Consumer AL)
0x197 AL Remote Networking/ISP Connect
0x198 AL Network Conference
0x199 AL Network Chat Applications C_AL_NETWORK_CHAT
C_AL_CHAT
Network Chat (Consumer AL)
0x19A AL Telephony/Dialer
0x19B AL Logon
0x19C AL Logoff Power C_AL_LOGOFF Logoff (Consumer AL)
0x19D AL Logon/Logoff
0x19E AL Terminal Lock/Screensaver Power C_AL_LOCK
C_AL_SCREENSAVER
C_AL_COFFEE
Terminal Lock / Screensaver (Consumer AL)
0x19F AL Control Panel Applications C_AL_CONTROL_PANEL Control Panel (Consumer AL)
0x1A0 AL Command Line Processor/Run
0x1A1 AL Process/Task Manager
0x1A2 AL Select Task/Application Applications C_AL_SELECT_TASK Select Task / Application (Consumer AL)
0x1A3 AL Next Task/Application Applications C_AL_NEXT_TASK Next Task / Application (Consumer AL)
0x1A4 AL Previous Task/Application Applications C_AL_PREVIOUS_TASK
C_AL_PREV_TASK
Previous Task / Application (Consumer AL)
0x1A5 AL Preemptive Halt Task/Application
0x1A6 AL Integrated Help Center Applications C_AL_HELP Integrated Help Center (Consumer AL)
0x1A7 AL Documents Applications C_AL_DOCUMENTS
C_AL_DOCS
Documents (Consumer AL)
0x1A8 AL Thesaurus
0x1A9 AL Dictionary
0x1AA AL Desktop
0x1AB AL Spell Check Applications C_AL_SPELLCHECK
C_AL_SPELL
Spell Check (Consumer AL)
0x1AC AL Grammar Check
0x1AD AL Wireless Status
0x1AE AL Keyboard Layout Applications C_AL_KEYBOARD_LAYOUT Keyboard Layout (Consumer AL)
0x1AF AL Virus Protection
0x1B0 AL Encryption
0x1B1 AL Screen Saver Power C_AL_LOCK
C_AL_SCREENSAVER
C_AL_COFFEE
Terminal Lock / Screensaver (Consumer AL)
0x1B2 AL Alarms
0x1B3 AL Clock
0x1B4 AL File Browser Applications C_AL_FILE_BROWSER
C_AL_FILES
File Browser (Consumer AL)
0x1B5 AL Power Status
0x1B6 AL Image Browser Applications C_AL_IMAGE_BROWSER
C_AL_IMAGES
Image Browser (Consumer AL)
0x1B7 AL Audio Browser Applications C_AL_AUDIO_BROWSER
C_AL_AUDIO
C_AL_MUSIC
Audio Browser (Consumer AL)
0x1B8 AL Movie Browser Applications C_AL_MOVIE_BROWSER
C_AL_MOVIES
Movie Browser (Consumer AL)
0x1B9 AL Digital Rights Manager
0x1BA AL Digital Wallet
0x1BC AL Instant Messaging Applications C_AL_INSTANT_MESSAGING
C_AL_IM
Instant Messaging (Consumer AL)
0x1BD AL OEM Features/ Tips/Tutorial Browser Applications C_AL_OEM_FEATURES
C_AL_TIPS
C_AL_TUTORIAL
OEM Features / Tips / Tutorial Browser (Consumer AL)
0x1BE AL OEM Help
0x1BF AL Online Community
0x1C0 AL Entertainment Content Browser
0x1C1 AL Online Shopping Browser
0x1C2 AL SmartCard Information/Help
0x1C3 AL Market Monitor/Finance Browser
0x1C4 AL Customized Corporate News Browser
0x1C5 AL Online Activity Browser
0x1C6 AL Research/Search Browser
0x1C7 AL Audio Player
0x1C8 AL Message Status
0x1C9 AL Contact Sync
0x1CA AL Navigation
0x1CB AL Context‐aware Desktop Assistant
0x200 Generic GUI Application Controls
0x201 AC New Application Controls C_AC_NEW New (Consumer AC)
0x202 AC Open Application Controls C_AC_OPEN Open (Consumer AC)
0x203 AC Close Application Controls C_AC_CLOSE Close (Consumer AC)
0x204 AC Exit Application Controls C_AC_EXIT Exit (Consumer AC)
0x205 AC Maximize
0x206 AC Minimize
0x207 AC Save Application Controls C_AC_SAVE Save (Consumer AC)
0x208 AC Print Application Controls C_AC_PRINT Print (Consumer AC)
0x209 AC Properties Application Controls C_AC_PROPERTIES
C_AC_PROPS
Properties (Consumer AC)
0x21A AC Undo Editing Undo, Redo C_AC_UNDO Undo (Consumer AC)
0x21B AC Copy Editing Cut, Copy, Paste C_AC_COPY Copy (Consumer AC)
0x21C AC Cut Editing Cut, Copy, Paste C_AC_CUT Cut (Consumer AC)
0x21D AC Paste Editing Cut, Copy, Paste C_AC_PASTE Paste (Consumer AC)
0x21E AC Select All
0x21F AC Find Application Controls C_AC_FIND Find (Consumer AC)
0x220 AC Find and Replace
0x221 AC Search Application Controls C_AC_SEARCH Search (Consumer AC)
0x222 AC Go To Application Controls C_AC_GOTO Go To (Consumer AC)
0x223 AC Home Application Controls C_AC_HOME Home (Consumer AC)
0x224 AC Back Application Controls C_AC_BACK Back (Consumer AC)
0x225 AC Forward Application Controls C_AC_FORWARD Forward (Consumer AC)
0x226 AC Stop Application Controls C_AC_STOP Stop (Consumer AC)
0x227 AC Refresh Application Controls C_AC_REFRESH Refresh (Consumer AC)
0x228 AC Previous Link
0x229 AC Next Link
0x22A AC Bookmarks Application Controls C_AC_BOOKMARKS
C_AC_FAVORITES
C_AC_FAVOURITES
Bookmarks (Consumer AC)
0x22B AC History
0x22C AC Subscriptions
0x22D AC Zoom In Application Controls C_AC_ZOOM_IN Zoom In (Consumer AC)
0x22E AC Zoom Out Application Controls C_AC_ZOOM_OUT Zoom Out (Consumer AC)
0x22F AC Zoom Application Controls C_AC_ZOOM Zoom (Consumer AC)
0x230 AC Full Screen View Application Controls C_AC_VIEW_TOGGLE View Toggle (Consumer AC)
0x231 AC Normal View
0x232 AC View Toggle
0x233 AC Scroll Up Application Controls C_AC_SCROLL_UP Scroll Up (Consumer AC)
0x234 AC Scroll Down Application Controls C_AC_SCROLL_DOWN Scroll Down (Consumer AC)
0x235 AC Scroll
0x236 AC Pan Left
0x237 AC Pan Right
0x238 AC Pan
0x239 AC New Window
0x23A AC Tile Horizontally
0x23B AC Tile Vertically
0x23C AC Format
0x23D AC Edit Application Controls C_AC_EDIT Edit (Consumer AC)
0x23E AC Bold
0x23F AC Italics
0x240 AC Underline
0x241 AC Strikethrough
0x242 AC Subscript
0x243 AC Superscript
0x244 AC All Caps
0x245 AC Rotate
0x246 AC Resize
0x247 AC Flip Horizontal
0x248 AC Flip Vertical
0x249 AC Mirror Horizontal
0x24A AC Mirror Vertical
0x24B AC Font Select
0x24C AC Font Color
0x24D AC Font Size
0x24E AC Justify Left
0x24F AC Justify Center H
0x250 AC Justify Right
0x251 AC Justify Block H
0x252 AC Justify Top
0x253 AC Justify Center V
0x254 AC Justify Bottom
0x255 AC Justify Block V
0x256 AC Indent Decrease
0x257 AC Indent Increase
0x258 AC Numbered List
0x259 AC Restart Numbering
0x25A AC Bulleted List
0x25B AC Promote
0x25C AC Demote
0x25D AC Yes
0x25E AC No
0x25F AC Cancel Application Controls C_AC_CANCEL Cancel (Consumer AC)
0x260 AC Catalog
0x261 AC Buy/Checkout
0x262 AC Add to Cart
0x263 AC Expand
0x264 AC Expand All
0x265 AC Collapse
0x266 AC Collapse All
0x267 AC Print Preview
0x268 AC Paste Special
0x269 AC Insert Mode Application Controls C_AC_INSERT
C_AC_INS
Insert Mode (Consumer AC)
0x26A AC Delete Application Controls C_AC_DEL Delete (Consumer AC)
0x26B AC Lock
0x26C AC Unlock
0x26D AC Protect
0x26E AC Unprotect
0x26F AC Attach Comment
0x270 AC Delete Comment
0x271 AC View Comment
0x272 AC Select Word
0x273 AC Select Sentence
0x274 AC Select Paragraph
0x275 AC Select Column
0x276 AC Select Row
0x277 AC Select Table
0x278 AC Select Object
0x279 AC Redo/Repeat Editing Undo, Redo C_AC_REDO Redo / Repeat (Consumer AC)
0x27A AC Sort
0x27B AC Sort Ascending
0x27C AC Sort Descending
0x27D AC Filter
0x27E AC Set Clock
0x27F AC View Clock
0x280 AC Select Time Zone
0x281 AC Edit Time Zones
0x282 AC Set Alarm
0x283 AC Clear Alarm
0x284 AC Snooze Alarm
0x285 AC Reset Alarm
0x286 AC Synchronize
0x287 AC Send/Receive
0x288 AC Send To
0x289 AC Reply Application Controls C_AC_REPLY Reply (Consumer AC)
0x28A AC Reply All
0x28B AC Forward Msg Application Controls C_AC_FORWARD_MAIL Forward (Consumer AC)
0x28C AC Send Application Controls C_AC_SEND Send (Consumer AC)
0x28D AC Attach File
0x28E AC Upload
0x28F AC Download (Save Target As)
0x290 AC Set Borders
0x291 AC Insert Row
0x292 AC Insert Column
0x293 AC Insert File
0x294 AC Insert Picture
0x295 AC Insert Object
0x296 AC Insert Symbol
0x297 AC Save and Close
0x298 AC Rename
0x299 AC Merge
0x29A AC Split
0x29B AC Disribute Horizontally
0x29C AC Distribute Vertically
0x29D AC Next Keyboard Layout Select
0x29E AC Navigation Guidance
0x29F AC Desktop Show All Windows Application Controls C_AC_DESKTOP_SHOW_ALL_WINDOWS Desktop Show All Windows (Consumer AC)
0x2A0 AC Soft Key Left
0x2A1 AC Soft Key Right
0x2A2 AC Desktop Show All Applications Application Controls C_AC_DESKTOP_SHOW_ALL_APPLICATIONS Desktop Show All Applications (Consumer AC)
0x2B0 AC Idle Keep Alive
0x2C0 Extended Keyboard Attributes Collection
0x2C1 Keyboard Form Factor
0x2C2 Keyboard Key Type
0x2C3 Keyboard Physical Layout
0x2C4 Vendor‐Specific Keyboard Physical Layout
0x2C5 Keyboard IETF Language Tag Index
0x2C6 Implemented Keyboard Input Assist Controls
0x2C7 Keyboard Input Assist Previous Input Assist C_KEYBOARD_INPUT_ASSIST_PREVIOUS
C_KBIA_PREV
Previous (Consumer KBIA)
0x2C8 Keyboard Input Assist Next Input Assist C_KEYBOARD_INPUT_ASSIST_NEXT
C_KBIA_NEXT
Next (Consumer KBIA)
0x2C9 Keyboard Input Assist Previous Group Input Assist C_KEYBOARD_INPUT_ASSIST_PREVIOUS_GROUP
C_KBIA_PREV_GRP
Previous Group (Consumer KBIA)
0x2CA Keyboard Input Assist Next Group Input Assist C_KEYBOARD_INPUT_ASSIST_NEXT_GROUP
C_KBIA_NEXT_GRP
Next Group (Consumer KBIA)
0x2CB Keyboard Input Assist Accept Input Assist C_KEYBOARD_INPUT_ASSIST_ACCEPT
C_KBIA_ACCEPT
Accept (Consumer KBIA)
0x2CC Keyboard Input Assist Cancel Input Assist C_KEYBOARD_INPUT_ASSIST_CANCEL
C_KBIA_CANCEL
Cancel (Consumer KBIA)
0x2D0 Privacy Screen Toggle
0x2D1 Privacy Screen Level Decrement
0x2D2 Privacy Screen Level Increment
0x2D3 Privacy Screen Level Minimum
0x2D4 Privacy Screen Level Maximum
0x500 Contact Edited
0x501 Contact Added
0x502 Contact Record Active
0x503 Contact Index
0x504 Contact Nickname
0x505 Contact First Name
0x506 Contact Last Name
0x507 Contact Full Name
0x508 Contact Phone Number Personal
0x509 Contact Phone Number Business
0x50A Contact Phone Number Mobile
0x50B Contact Phone Number Pager
0x50C Contact Phone Number Fax
0x50D Contact Phone Number Other
0x50E Contact Email Personal
0x50F Contact Email Business
0x510 Contact Email Other
0x511 Contact Email Main
0x512 Contact Speed Dial Number
0x513 Contact Status Flag
0x514 Contact Misc.

まとめ

ZMK Studioのキーコードを人力でまとめました。まとめて気付きましたが、ZMKで定義されていないキーコードがかなり多いですね... この一覧を辞書的に使えてもらえると幸いです。

脚注
  1. Keychron Launcherなどのメーカー製もありますが、ここでは除外。 ↩︎

  2. 私はこの記事を書くまで絞り込み検索できるのを知りませんでした…
    https://x.com/karbou_12/status/2012226053209567412 ↩︎

Discussion