diff options
author | skullY <skullydazed@gmail.com> | 2020-02-25 14:42:50 -0800 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2020-03-05 16:00:10 -0800 |
commit | 12e43230c6c239553d357e83ea5bc6b61521389d (patch) | |
tree | eb902e056ac83b17045503a56442c9f2713c978f /docs/faq_keymap.md | |
parent | 55c5b82638d66762bb41e611fec077663c468ae9 (diff) |
make custom_keycode_names.md a faq entry instead
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 2d00e8bef9..d1d9b91964 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 <!-- Source for this image: http://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a --> ![Keyboard Layout Image](https://i.imgur.com/5wsh5wM.png) +## How Can I Make Custom Names For Complex Keycodes? + +Sometimes, for readability's sake, it's useful to define custom names for some keycodes. People often define custom names using `#define`. For example: + +```c +#define FN_CAPS LT(_FL, KC_CAPSLOCK) +#define ALT_TAB LALT(KC_TAB) +``` + +This will allow you to use `FN_CAPS` and `ALT_TAB` in your keymap, keeping it more readable. + ## Some Of My Keys Are Swapped Or Not Working 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. |