diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-08-07 16:45:11 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-08-07 16:45:11 -0400 |
commit | b25133cbefbeecbdde0ba6206d9cd54d7f2c1a12 (patch) | |
tree | 1b19c4bced06962d949bc978df4b3783772b009e | |
parent | dd8deceed02b9d439eca3bc10fdde5b5d0fb9c6e (diff) |
Add a layer diagram.
* Original diagram from Thomas Baart, used
with permission.
-rw-r--r-- | docs/docs/assets/features/keymaps/layer-diagram.png | bin | 0 -> 53975 bytes | |||
-rw-r--r-- | docs/docs/feature/keymaps.md | 6 |
2 files changed, 4 insertions, 2 deletions
diff --git a/docs/docs/assets/features/keymaps/layer-diagram.png b/docs/docs/assets/features/keymaps/layer-diagram.png Binary files differnew file mode 100644 index 0000000..7b42daa --- /dev/null +++ b/docs/docs/assets/features/keymaps/layer-diagram.png diff --git a/docs/docs/feature/keymaps.md b/docs/docs/feature/keymaps.md index 3b8ebb8..020df17 100644 --- a/docs/docs/feature/keymaps.md +++ b/docs/docs/feature/keymaps.md @@ -39,11 +39,13 @@ Like many mechanical keyboard firmwares, ZMK keymaps are composed of a collectio minimum of at least one layer that is the default, usually near the bottom of the "stack". Each layer in ZMK contains a set of bindings that bind a certain behavior to a certain key position in that layer. +|  | +| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | +| _A simplified diagram showing three layers. The layout of each layer is the same (they all contain four keys), but the behavior bindings within each layer can be different._ | + In addition to the base default layer (which can be changed), certain bound behaviors may also enable/disable additional layers "on top" of the default layer. -**TODO**: A diagram to help visualize layers - When a key location is pressed/released, the stack of all active layers from "top to bottom" is used, and the event is sent to the behavior bound at that position in each layer, for it to perform whatever actions it wants to in reaction to the event. Those behaviors can choose to "handle" the event, and stop |