You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/combo_layers.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Combo Layers is when you hold down 2 or more `KC.MO()` or `KC.LM()` keys at a time, and it goes to a defined layer.
4
4
5
-
By default combo layers is not activated. You can activate combo layers by adding this to your `main.py` file.
5
+
By default, combo layers are not activated. You can activate combo layers by adding this to your `main.py` file.
6
6
The `combo_layers` NEEDS to be above the `keyboard.modules.append(Layers(`combo_layers`))`
7
7
8
8
```python
@@ -12,10 +12,10 @@ combo_layers = {
12
12
keyboard.modules.append(Layers(combo_layers))
13
13
```
14
14
15
-
In the above code, when layer 1 and 2 are held, layer 3 will activate. If you release 1 or 2 it will go to whatever key is still being held, if both are released it goes to the default (0) layer.
16
-
You should also notice that if you already have the layers Module activated, you can just add combo layers into `(Layers())`
15
+
In the above code, when layers 1 and 2 are held, layer 3 will activate. If you release 1 or 2 it will go to whatever key is still being held; if both are released, it will go to the default (0) layer.
16
+
You may have noticed that if you already have the layers module activated, you can add combo layers into `(Layers())`
17
17
18
-
You can add more, and even add more than 2 layers at a time.
18
+
You can even add more than 2 layers at a time.
19
19
20
20
```python
21
21
combo_layers = {
@@ -26,7 +26,7 @@ combo_layers = {
26
26
27
27
## Limitations
28
28
29
-
There can only be one combo layer active at a time and for overlapping matches
29
+
There can only be one combo layer active at a time, and when the combos are overlapping,
30
30
the first matching combo in `combo_layers` takes precedence.
31
31
Example:
32
32
```python
@@ -38,13 +38,13 @@ layers.combo_layers = {
38
38
keyboard.modules.append(Layers(combo_layers))
39
39
```
40
40
* If you activate layers 1 then 2, your active layer will be layer number 9.
41
-
* If you activate layers 1 then 2, then 3, your active layer will be layer
41
+
* If you activate layers 1, then 2, then 3, your active layer will be layer
42
42
number 3 (because the layer combo `(1,2)` has been activated, but layer 3
43
43
stacks on top).
44
44
* deactivate 1: you're on layer 3
45
45
* deactivate 2: you're on layer 3
46
46
* deactivate 3: you're on layer 8
47
-
* If you activate layers 3 then 1, then 2, your active layer will be layer
47
+
* If you activate layers 3, then 1, then 2, your active layer will be layer
0 commit comments