Basic Keycodes
KC_*
å½¢å¼ã®ãã¼ã³ã¼ãã¨ãã®ã·ã§ã¼ããã¼ã ããªã¹ãã¢ããããã¦ãã¾ãã
KC_2 ... Keyboard 2 and @
ã¨ããã®ã§ãè±èªé
åãåæã«ãªã£ã¦ããã¨èãããã¾ãã
Quantum Keycodes
QMK ç¹æã®ãã¼ã³ã¼ããã¨ã¤ãªã¢ã¹ããªã¹ãã¢ããããã¦ãã¾ãã
Layer
- qmk_firmware / docs / keycodes.md#layer-switching
- qmk_firmware / docs / feature_advanced_keycodes.md#switching-and-toggling-layers
Keycode | Mean | Desc |
---|---|---|
TO(layer, when) | GOTO layer | ã¬ã¤ã¤ã¼ç§»åï¼whenã¯1 (ON_PRESS)æ¨å¥¨ï¼ |
MO(layer) | Momentary | æ¼ãã¦ããéã ãæå®ããã¬ã¤ã¤ã¼ |
OSL(layer) | One-shot layer | 次ã®ï¼ãã¼ã ãæå®ããã¬ã¤ã¤ã¼ |
LT(layer, kc) | Layer / Tap | æ¼ãã¦ããéã ãæå®ããã¬ã¤ã¤ã¼ãã¿ããã§kc |
TG(layer) | Toggle layer | ã¿ãããã¦æå®ããã¬ã¤ã¤ã¼ãåã¿ããã§æ»ãï¼â»ï¼ |
DF(layer) | Default layer | ããã©ã«ãã¬ã¤ã¤ã¼ã®å¤æ´ï¼é»æºOFFã¾ã§ç¶ç¶ï¼ |
- â» è¡ãå
ã®ã¬ã¤ã¤ã¼ã«ã¯åããã¼ã«
KC_TRNS
ãå²ãå½ã¦ãå¿ è¦ãã
Modifier Keys
- qmk_firmware / docs / keycodes.md#modifiers
- qmk_firmware / docs / feature_advanced_keycodes.md#modifier-keys
Keycode | Desc |
---|---|
LSFT(kc) | å·¦ Shift + kc |
S(kc) | å·¦ Shift + kc |
RSFT(kc) | å³ Shift + kc |
LCTL(kc) | å·¦ Ctrl + kc |
RCTL(kc) | å³ Ctrl + kc |
LALT(kc) | å·¦ Alt + kc |
RALT(kc) | å³ Alt + kc |
LGUI(kc) | å·¦ GUI (Cmd/Win) + kc |
RGUI(kc) | å³ GUI (Cmd/Win) + kc |
HYPR(kc) | Ctrl + Shift + Alt + Gui + kc |
MEH(kc) | Ctrl + Shift + Alt + kc |
LCAG(kc) | Ctrl + Alt + Gui + kc |
Samples for Modifier Keys
LALT(LCTL(KC_DEL))
- this makes a key that sends Alt, Control, and Delete in a single keypress.
Shift ãã¼ãå¿ è¦ã¨ãããã¼ã®ã·ã§ã¼ããã¼ã
qmk_firmware / docs / keycodes.md#us-ansi-shifted-symbols
Keycode | Key |
---|---|
KC_TILD | ~ |
KC_EXLM | ! |
KC_AT | @ |
KC_HASH | # |
KC_DLR | $ |
KC_PERC | % |
KC_CIRC | ^ |
KC_AMPR | & |
KC_ASTR | * |
KC_LPRN | ( |
KC_RPRN | ) |
KC_UNDS | _ |
KC_PLUS | + |
KC_DQUO | " |
KC_LCBR | { |
KC_RCBR | } |
KC_LABK | < |
KC_RABK | > |
KC_PIPE | | |
KC_COLN | : |
Modifier-Tap shortcuts
- qmk_firmware / docs / keycodes.md#mod-tap-keys
- qmk_firmware / docs / feature_advanced_keycodes.md#mod-tap
é·æ¼ã㧠Modifier ãã¼ãã¿ããã§é常ãã¼ãå®ç¾ãã MT(mod, kc)
ã®ç°¡æè¨è¿°ã§ãã
Keycode | Desc |
---|---|
CTL_T(kc) | é·æ¼ã㧠Ctrl ãã¿ãã㧠kc |
SFT_T(kc) | é·æ¼ã㧠Shift ãã¿ãã㧠kc |
ALT_T(kc) | é·æ¼ã㧠Alt ãã¿ãã㧠kc |
GUI_T(kc) | é·æ¼ã㧠Gui ãã¿ãã㧠kc |
ALL_T(kc) | é·æ¼ã㧠Ctrl + Shift + Alt + Gui ãã¿ãã㧠kc |
MEH_T(kc) | é·æ¼ã㧠Ctrl + Shift + Alt ãã¿ãã㧠kc |
LCAG_T(kc) | é·æ¼ã㧠Ctrl + Alt + Gui ãã¿ãã㧠kc |
Samples for Modifier-Tap
CTL_T(KC_Z)
- é·æ¼ãã§
Ctrl
ãã¿ããã§Z
ã ALL_T(KC_NO)
- é·æ¼ãã§
Hyper
ãã¿ããã§ä½ãããªã
ã ALT_T(KC_APP)
- é·æ¼ãã§
Alt
ãã¿ããã§APP
ã
Leader key
qmk_firmware / docs / feature_leader_key.md
ãã¼ã®åææ¼ãã§ã¯ãªããæ¼ããé çªã§äºåå®ç¾©ãããã¼ãéä¿¡ããæ°æ¦å¿µã
KC_LEAD
ã«è¨å®ãããã¼ãã¿ãããã¦ãããç»é²ãããã¼ã³ã³ããã¼ã·ã§ã³ãç´ æ©ãæã¤ãã¨ã§çºç«ããããï¼æªæ¤è¨¼ï¼