diff options
| -rw-r--r-- | docs/keycodes.md | 74 | ||||
| -rw-r--r-- | quantum/quantum_keycodes.h | 9 |
2 files changed, 49 insertions, 34 deletions
diff --git a/docs/keycodes.md b/docs/keycodes.md index 5fbc8f4fa..c6403c80b 100644 --- a/docs/keycodes.md +++ b/docs/keycodes.md | |||
| @@ -381,45 +381,51 @@ See also: [Mouse Keys](feature_mouse_keys.md) | |||
| 381 | 381 | ||
| 382 | See also: [Modifier Keys](feature_advanced_keycodes.md#modifier-keys) | 382 | See also: [Modifier Keys](feature_advanced_keycodes.md#modifier-keys) |
| 383 | 383 | ||
| 384 | |Key |Aliases |Description | | 384 | |Key |Aliases |Description | |
| 385 | |----------|-------------------------------|----------------------------------------------------| | 385 | |----------|-------------------------------|------------------------------------------------------| |
| 386 | |`LCTL(kc)`|`C(kc)` |Hold Left Control and press `kc` | | 386 | |`LCTL(kc)`|`C(kc)` |Hold Left Control and press `kc` | |
| 387 | |`LSFT(kc)`|`S(kc)` |Hold Left Shift and press `kc` | | 387 | |`LSFT(kc)`|`S(kc)` |Hold Left Shift and press `kc` | |
| 388 | |`LALT(kc)`|`A(kc)`, `LOPT(kc)` |Hold Left Alt and press `kc` | | 388 | |`LALT(kc)`|`A(kc)`, `LOPT(kc)` |Hold Left Alt and press `kc` | |
| 389 | |`LGUI(kc)`|`G(kc)`, `LCMD(kc)`, `LWIN(kc)`|Hold Left GUI and press `kc` | | 389 | |`LGUI(kc)`|`G(kc)`, `LCMD(kc)`, `LWIN(kc)`|Hold Left GUI and press `kc` | |
| 390 | |`RCTL(kc)`| |Hold Right Control and press `kc` | | 390 | |`RCTL(kc)`| |Hold Right Control and press `kc` | |
| 391 | |`RSFT(kc)`| |Hold Right Shift and press `kc` | | 391 | |`RSFT(kc)`| |Hold Right Shift and press `kc` | |
| 392 | |`RALT(kc)`|`ROPT(kc)`, `ALGR(kc)` |Hold Right Alt and press `kc` | | 392 | |`RALT(kc)`|`ROPT(kc)`, `ALGR(kc)` |Hold Right Alt (AltGr) and press `kc` | |
| 393 | |`RGUI(kc)`|`RCMD(kc)`, `LWIN(kc)` |Hold Right GUI and press `kc` | | 393 | |`RGUI(kc)`|`RCMD(kc)`, `LWIN(kc)` |Hold Right GUI and press `kc` | |
| 394 | |`SGUI(kc)`|`SCMD(kc)`, `SWIN(kc)` |Hold Left Shift and GUI and press `kc` | | 394 | |`SGUI(kc)`|`SCMD(kc)`, `SWIN(kc)` |Hold Left Shift and GUI and press `kc` | |
| 395 | |`LCA(kc)` | |Hold Left Control and Alt and press `kc` | | 395 | |`LCA(kc)` | |Hold Left Control and Alt and press `kc` | |
| 396 | |`LCAG(kc)`| |Hold Left Control, Alt and GUI and press `kc` | | 396 | |`LSA(kc)` | |Hold Left Shift and Left Alt and press `kc` | |
| 397 | |`MEH(kc)` | |Hold Left Control, Shift and Alt and press `kc` | | 397 | |`RSA(kc)` |`SAGR(kc)` |Hold Right Shift and Right Alt (AltGr) and press `kc` | |
| 398 | |`HYPR(kc)`| |Hold Left Control, Shift, Alt and GUI and press `kc`| | 398 | |`RCS(kc)` | |Hold Right Control and Right Shift and press `kc` | |
| 399 | |`KC_MEH` | |Left Control, Shift and Alt | | 399 | |`LCAG(kc)`| |Hold Left Control, Alt and GUI and press `kc` | |
| 400 | |`KC_HYPR` | |Left Control, Shift, Alt and GUI | | 400 | |`MEH(kc)` | |Hold Left Control, Shift and Alt and press `kc` | |
| 401 | |`HYPR(kc)`| |Hold Left Control, Shift, Alt and GUI and press `kc` | | ||
| 402 | |`KC_MEH` | |Left Control, Shift and Alt | | ||
| 403 | |`KC_HYPR` | |Left Control, Shift, Alt and GUI | | ||
| 401 | 404 | ||
| 402 | ## Mod-Tap Keys :id=mod-tap-keys | 405 | ## Mod-Tap Keys :id=mod-tap-keys |
| 403 | 406 | ||
| 404 | See also: [Mod-Tap](mod_tap.md) | 407 | See also: [Mod-Tap](mod_tap.md) |
| 405 | 408 | ||
| 406 | |Key |Aliases |Description | | 409 | |Key |Aliases |Description | |
| 407 | |-------------|-----------------------------------------------------------------|-------------------------------------------------------| | 410 | |-------------|-----------------------------------------------------------------|--------------------------------------------------------------| |
| 408 | |`MT(mod, kc)`| |`mod` when held, `kc` when tapped | | 411 | |`MT(mod, kc)`| |`mod` when held, `kc` when tapped | |
| 409 | |`LCTL_T(kc)` |`CTL_T(kc)` |Left Control when held, `kc` when tapped | | 412 | |`LCTL_T(kc)` |`CTL_T(kc)` |Left Control when held, `kc` when tapped | |
| 410 | |`LSFT_T(kc)` |`SFT_T(kc)` |Left Shift when held, `kc` when tapped | | 413 | |`LSFT_T(kc)` |`SFT_T(kc)` |Left Shift when held, `kc` when tapped | |
| 411 | |`LALT_T(kc)` |`LOPT_T(kc)`, `ALT_T(kc)`, `OPT_T(kc)` |Left Alt when held, `kc` when tapped | | 414 | |`LALT_T(kc)` |`LOPT_T(kc)`, `ALT_T(kc)`, `OPT_T(kc)` |Left Alt when held, `kc` when tapped | |
| 412 | |`LGUI_T(kc)` |`LCMD_T(kc)`, `LWIN_T(kc)`, `GUI_T(kc)`, `CMD_T(kc)`, `WIN_T(kc)`|Left GUI when held, `kc` when tapped | | 415 | |`LGUI_T(kc)` |`LCMD_T(kc)`, `LWIN_T(kc)`, `GUI_T(kc)`, `CMD_T(kc)`, `WIN_T(kc)`|Left GUI when held, `kc` when tapped | |
| 413 | |`RCTL_T(kc)` | |Right Control when held, `kc` when tapped | | 416 | |`RCTL_T(kc)` | |Right Control when held, `kc` when tapped | |
| 414 | |`RSFT_T(kc)` | |Right Shift when held, `kc` when tapped | | 417 | |`RSFT_T(kc)` | |Right Shift when held, `kc` when tapped | |
| 415 | |`RALT_T(kc)` |`ROPT_T(kc)`, `ALGR_T(kc)` |Right Alt when held, `kc` when tapped | | 418 | |`RALT_T(kc)` |`ROPT_T(kc)`, `ALGR_T(kc)` |Right Alt (AltGr) when held, `kc` when tapped | |
| 416 | |`RGUI_T(kc)` |`RCMD_T(kc)`, `RWIN_T(kc)` |Right GUI when held, `kc` when tapped | | 419 | |`RGUI_T(kc)` |`RCMD_T(kc)`, `RWIN_T(kc)` |Right GUI when held, `kc` when tapped | |
| 417 | |`SGUI_T(kc)` |`SCMD_T(kc)`, `SWIN_T(kc)` |Left Shift and GUI when held, `kc` when tapped | | 420 | |`SGUI_T(kc)` |`SCMD_T(kc)`, `SWIN_T(kc)` |Left Shift and GUI when held, `kc` when tapped | |
| 418 | |`LCA_T(kc)` | |Left Control and Alt when held, `kc` when tapped | | 421 | |`LCA_T(kc)` | |Left Control and Alt when held, `kc` when tapped | |
| 419 | |`LCAG_T(kc)` | |Left Control, Alt and GUI when held, `kc` when tapped | | 422 | |`LSA_T(kc)` | |Left Shift and Left Alt when held, `kc` when tapped | |
| 420 | |`RCAG_T(kc)` | |Right Control, Alt and GUI when held, `kc` when tapped | | 423 | |`RSA_T(kc)` |`SAGR_T(kc)` |Right Shift and Right Alt (AltGr) when held, `kc` when tapped | |
| 421 | |`C_S_T(kc)` | |Left Control and Shift when held, `kc` when tapped | | 424 | |`RCS_T(kc)` | |Right Control and Right Shift when held, `kc` when tapped | |
| 422 | |`MEH_T(kc)` | |Left Control, Shift and Alt when held, `kc` when tapped| | 425 | |`LCAG_T(kc)` | |Left Control, Alt and GUI when held, `kc` when tapped | |
| 426 | |`RCAG_T(kc)` | |Right Control, Alt and GUI when held, `kc` when tapped | | ||
| 427 | |`C_S_T(kc)` | |Left Control and Shift when held, `kc` when tapped | | ||
| 428 | |`MEH_T(kc)` | |Left Control, Shift and Alt when held, `kc` when tapped | | ||
| 423 | |`HYPR_T(kc)` |`ALL_T(kc)` |Left Control, Shift, Alt and GUI when held, `kc` when tapped - more info [here](http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/)| | 429 | |`HYPR_T(kc)` |`ALL_T(kc)` |Left Control, Shift, Alt and GUI when held, `kc` when tapped - more info [here](http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/)| |
| 424 | 430 | ||
| 425 | ## RGB Lighting :id=rgb-lighting | 431 | ## RGB Lighting :id=rgb-lighting |
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h index d8f1fa4bb..437921aeb 100644 --- a/quantum/quantum_keycodes.h +++ b/quantum/quantum_keycodes.h | |||
| @@ -540,6 +540,10 @@ enum quantum_keycodes { | |||
| 540 | #define SCMD(kc) SGUI(kc) | 540 | #define SCMD(kc) SGUI(kc) |
| 541 | #define SWIN(kc) SGUI(kc) | 541 | #define SWIN(kc) SGUI(kc) |
| 542 | #define LCA(kc) (QK_LCTL | QK_LALT | (kc)) | 542 | #define LCA(kc) (QK_LCTL | QK_LALT | (kc)) |
| 543 | #define LSA(kc) (QK_LSFT | QK_LALT | (kc)) | ||
| 544 | #define RSA(kc) (QK_RSFT | QK_RALT | (kc)) | ||
| 545 | #define RCS(kc) (QK_RCTL | QK_RSFT | (kc)) | ||
| 546 | #define SAGR(kc) RSA(kc) | ||
| 543 | 547 | ||
| 544 | #define MOD_HYPR 0xF | 548 | #define MOD_HYPR 0xF |
| 545 | #define MOD_MEH 0x7 | 549 | #define MOD_MEH 0x7 |
| @@ -763,6 +767,11 @@ enum quantum_keycodes { | |||
| 763 | #define SCMD_T(kc) SGUI_T(kc) | 767 | #define SCMD_T(kc) SGUI_T(kc) |
| 764 | #define SWIN_T(kc) SGUI_T(kc) | 768 | #define SWIN_T(kc) SGUI_T(kc) |
| 765 | #define LCA_T(kc) MT(MOD_LCTL | MOD_LALT, kc) // Left Control + Alt | 769 | #define LCA_T(kc) MT(MOD_LCTL | MOD_LALT, kc) // Left Control + Alt |
| 770 | #define LSA_T(kc) MT(MOD_LSFT | MOD_LALT, kc) // Left Shift + Alt | ||
| 771 | #define RSA_T(kc) MT(MOD_RSFT | MOD_RALT, kc) // Right Shift + Alt | ||
| 772 | #define RCS_T(kc) MT(MOD_RCTL | MOD_RSFT, kc) // Right Control + Shift | ||
| 773 | #define SAGR_T(kc) RSA_T(kc) | ||
| 774 | |||
| 766 | #define ALL_T(kc) HYPR_T(kc) | 775 | #define ALL_T(kc) HYPR_T(kc) |
| 767 | 776 | ||
| 768 | // Dedicated keycode versions for Hyper and Meh, if you want to use them as standalone keys rather than mod-tap | 777 | // Dedicated keycode versions for Hyper and Meh, if you want to use them as standalone keys rather than mod-tap |
