Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed grammatical mistakes, added clarification #1022

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/en/combo_layers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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.

By default combo layers is not activated. You can activate combo layers by adding this to your `main.py` file.
By default, combo layers are not activated. You can activate combo layers by adding this to your `main.py` file.
The `combo_layers` NEEDS to be above the `keyboard.modules.append(Layers(`combo_layers`))`

```python
Expand All @@ -12,10 +12,10 @@ combo_layers = {
keyboard.modules.append(Layers(combo_layers))
```

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.
You should also notice that if you already have the layers Module activated, you can just add combo layers into `(Layers())`
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.
You may have noticed that if you already have the layers module activated, you can add combo layers into `(Layers())`

You can add more, and even add more than 2 layers at a time.
You can even add more than 2 layers at a time.

```python
combo_layers = {
Expand All @@ -26,7 +26,7 @@ combo_layers = {

## Limitations

There can only be one combo layer active at a time and for overlapping matches
There can only be one combo layer active at a time, and when the combos are overlapping,
the first matching combo in `combo_layers` takes precedence.
Example:
```python
Expand All @@ -38,13 +38,13 @@ layers.combo_layers = {
keyboard.modules.append(Layers(combo_layers))
```
* If you activate layers 1 then 2, your active layer will be layer number 9.
* If you activate layers 1 then 2, then 3, your active layer will be layer
* If you activate layers 1, then 2, then 3, your active layer will be layer
number 3 (because the layer combo `(1,2)` has been activated, but layer 3
stacks on top).
* deactivate 1: you're on layer 3
* deactivate 2: you're on layer 3
* deactivate 3: you're on layer 8
* If you activate layers 3 then 1, then 2, your active layer will be layer
* If you activate layers 3, then 1, then 2, your active layer will be layer
number 8. Deactivate layer
* deactivate any of 1/2/3: you're on layer 0

Expand Down