aboutsummaryrefslogtreecommitdiff
path: root/docs/feature_advanced_keycodes.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/feature_advanced_keycodes.md')
-rw-r--r--docs/feature_advanced_keycodes.md30
1 files changed, 1 insertions, 29 deletions
diff --git a/docs/feature_advanced_keycodes.md b/docs/feature_advanced_keycodes.md
index 493a99fd7..f93b8033a 100644
--- a/docs/feature_advanced_keycodes.md
+++ b/docs/feature_advanced_keycodes.md
@@ -1,6 +1,6 @@
1# Advanced Keycodes 1# Advanced Keycodes
2 2
3Your keymap can include keycodes that are more advanced than normal, for example shifted keys. This page documents the functions that are available to you. 3Your keymap can include keycodes that are more advanced than normal, for example keys that switch layers or send modifiers when held, but send regular keycodes when tapped. This page documents the functions that are available to you.
4 4
5### Assigning Custom Names 5### Assigning Custom Names
6 6
@@ -73,34 +73,6 @@ You can also chain these, like this:
73 73
74 LALT(LCTL(KC_DEL)) -- this makes a key that sends Alt, Control, and Delete in a single keypress. 74 LALT(LCTL(KC_DEL)) -- this makes a key that sends Alt, Control, and Delete in a single keypress.
75 75
76# Shifted Keycodes
77
78The following shortcuts automatically add `LSFT()` to keycodes to get commonly used symbols.
79
80|Key |Aliases |Description |
81|------------------------|------------------|-------------------|
82|`KC_TILDE` |`KC_TILD` |`~` |
83|`KC_EXCLAIM` |`KC_EXLM` |`!` |
84|`KC_AT` | |`@` |
85|`KC_HASH` | |`#` |
86|`KC_DOLLAR` |`KC_DLR` |`$` |
87|`KC_PERCENT` |`KC_PERC` |`%` |
88|`KC_CIRCUMFLEX` |`KC_CIRC` |`^` |
89|`KC_AMPERSAND` |`KC_AMPR` |`&` |
90|`KC_ASTERISK` |`KC_ASTR` |`*` |
91|`KC_LEFT_PAREN` |`KC_LPRN` |`(` |
92|`KC_RIGHT_PAREN` |`KC_RPRN` |`)` |
93|`KC_UNDERSCORE` |`KC_UNDS` |`_` |
94|`KC_PLUS` | |`+` |
95|`KC_LEFT_CURLY_BRACE` |`KC_LCBR` |`{` |
96|`KC_RIGHT_CURLY_BRACE` |`KC_RCBR` |`}` |
97|`KC_PIPE` | |<code>&#124;</code>|
98|`KC_COLON` |`KC_COLN` |`:` |
99|`KC_DOUBLE_QUOTE` |`KC_DQT`/`KC_DQUO`|`"` |
100|`KC_LEFT_ANGLE_BRACKET` |`KC_LT`/`KC_LABK` |`<` |
101|`KC_RIGHT_ANGLE_BRACKET`|`KC_GT`/`KC_RABK` |`>` |
102|`KC_QUESTION` |`KC_QUES` |`?` |
103
104# Mod Tap 76# Mod Tap
105 77
106`MT(mod, kc)` - is *mod* (modifier key - MOD_LCTL, MOD_LSFT) when held, and *kc* when tapped. In other words, you can have a key that sends Esc (or the letter O or whatever) when you tap it, but works as a Control key or a Shift key when you hold it down. 78`MT(mod, kc)` - is *mod* (modifier key - MOD_LCTL, MOD_LSFT) when held, and *kc* when tapped. In other words, you can have a key that sends Esc (or the letter O or whatever) when you tap it, but works as a Control key or a Shift key when you hold it down.