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: README.md
+6-8
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ The command line argument `-u` causes the configuration to be automatically relo
53
53
54
54
The keys are named after their scan codes and are not affected by the present keyboard layout.
55
55
The names have been chosen to match on what the [web browsers](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values) have agreed upon, so this [handy website](http://keycode.info/) can be used to get a key's name.
56
-
For convenience the letter and digits keys are also named `A` to `Z` and `0` to `9`. The logical keys `Shift`, `Control` and `Meta` are also defined (each matches the left and right modifier keys). There are also [virtual keys](#virtual-keys) for state switching, an [Any key](#any-key) and a [No key](#no-key).
56
+
For convenience the letter and digits keys are also named `A` to `Z` and `0` to `9`. The logical keys `Shift`, `Control`, `Alt` and `Meta` are also defined (each matches the left and right modifier keys). There are also [virtual keys](#virtual-keys) for state switching, an [Any key](#any-key) and a [No key](#no-key).
57
57
58
58
The mouse buttons are named `ButtonLeft`, `ButtonRight`, `ButtonMiddle`, `ButtonBack` and `ButtonForward`, the wheel is named `WheelUp`, `WheelDown`, `WheelLeft` and `WheelRight`.
59
59
@@ -102,12 +102,10 @@ Meta{X} >> B
102
102
Meta >> A
103
103
```
104
104
105
-
:warning: You may want to start your configuration with mappings, which ensure that the common mouse-modifiers are never held back:
105
+
:warning: You may want to add a `@forward-modifiers`[directive](#directives) to your configuration, which ensures that the common mouse-modifiers are never held back:
106
106
107
-
```bash
108
-
Shift >> Shift
109
-
Control >> Control
110
-
AltLeft >> AltLeft
107
+
```python
108
+
@forward-modifiers Shift Control Alt
111
109
```
112
110
113
111
For a detailed description of how the mapping is applied, see the [Functional principle](#functional-principle) section.
@@ -340,13 +338,13 @@ The following directives, which are lines starting with an `@`, can be inserted
340
338
341
339
- `forward-modifiers` allows to set a list of keys which should never be [held back](#order-of-mappings). e.g.:
342
340
```python
343
-
@forward-modifiers Shift Control AltLeft
341
+
@forward-modifiers Shift Control Alt
344
342
```
345
343
It effectively forwards these keys in each [stage](#multiple-stages) immediately, like:
346
344
```bash
347
345
Shift >> Shift
348
346
Control >> Control
349
-
AltLeft >>AltLeft
347
+
Alt >>Alt
350
348
```
351
349
and automatically suppresses the forwarded keys in the output:
0 commit comments