diff options
Diffstat (limited to 'docs/faq_keymap.md')
-rw-r--r-- | docs/faq_keymap.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/faq_keymap.md b/docs/faq_keymap.md index 2d00e8bef..d1d9b9196 100644 --- a/docs/faq_keymap.md +++ b/docs/faq_keymap.md | |||
@@ -14,6 +14,17 @@ There are 3 standard keyboard layouts in use around the world- ANSI, ISO, and JI | |||
14 | <!-- Source for this image: http://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a --> | 14 | <!-- Source for this image: http://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a --> |
15 |  | 15 |  |
16 | 16 | ||
17 | ## How Can I Make Custom Names For Complex Keycodes? | ||
18 | |||
19 | Sometimes, for readability's sake, it's useful to define custom names for some keycodes. People often define custom names using `#define`. For example: | ||
20 | |||
21 | ```c | ||
22 | #define FN_CAPS LT(_FL, KC_CAPSLOCK) | ||
23 | #define ALT_TAB LALT(KC_TAB) | ||
24 | ``` | ||
25 | |||
26 | This will allow you to use `FN_CAPS` and `ALT_TAB` in your keymap, keeping it more readable. | ||
27 | |||
17 | ## Some Of My Keys Are Swapped Or Not Working | 28 | ## Some Of My Keys Are Swapped Or Not Working |
18 | 29 | ||
19 | QMK has two features, Bootmagic and Command, which allow you to change the behavior of your keyboard on the fly. This includes, but is not limited to, swapping Ctrl/Caps, disabling Gui, swapping Alt/Gui, swapping Backspace/Backslash, disabling all keys, and other behavioral modifications. | 30 | QMK has two features, Bootmagic and Command, which allow you to change the behavior of your keyboard on the fly. This includes, but is not limited to, swapping Ctrl/Caps, disabling Gui, swapping Alt/Gui, swapping Backspace/Backslash, disabling all keys, and other behavioral modifications. |