Skip to content

Commit

Permalink
doc: adjust switch reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroo authored Nov 30, 2024
1 parent a338998 commit 81c8a32
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2614,10 +2614,10 @@ if any of the items evaluates to true.
(or $item1 $item2 ... $itemN)
(and $item1 $item2 ... $itemN)
(not $item1 $item2 ... $itemN)
(key-history $key-name $recency)
(key-timing $recency $comparator $time)
(key-history $key-name $key-recency)
(key-timing $key-recency $comparator $time)
(input $input-type $key-name)
(input-history $input-type $key-name $recency)
(input-history $input-type $key-name $input-recency)
(layer $layer-name)
(base-layer $layer-name)
----
Expand All @@ -2634,16 +2634,16 @@ if any of the items evaluates to true.
| Evaluates to true if all of `$item` are false.

| `key-history`
| Evaluates to true if the key in the `$recency` slot matches `$key-name`.
| Evaluates to true if the key in the recency slot matches `$key-name`.
A `$key-recency` of 1 is the most recent key pressed according to Kanata processing.
The max recency is 8.

| `key-timing`
| The valid values for `$comparator` are `less-than` and `greater-than`,
with `lt` and `gt` as shorthand if desired.
This item evaluates to true if the key with the corresponding `$recency`
This item evaluates to true if the key with the corresponding recency
was pressed — for `lt` more recently than, or for `gt` later than —
the defined `$time` with unit milliseconds.
A `$recency` of 1 is the most recent key pressed according to Kanata processing.
The max recency is 8.

| `input`
| Evaluates to true if the `$key-name` is currently pressed.
Expand All @@ -2652,9 +2652,9 @@ If using `real`, this will check against the defsrc inputs.
If using `virtual`, this will check against virtual key activations.

| `input-history`
| Evaluates to true if the input in the `$recency` slot matches `$key-name`.
| Evaluates to true if the input in the `$input-recency` slot matches `$key-name`.
Two input types use the same history with respect to recency slots.
A `$recency` of 1 is the most recent input i.e. the input activating `switch` itself.
A recency of 1 is the most recent input i.e. the input activating `switch` itself.
The max recency is 8.

| `layer`
Expand Down

0 comments on commit 81c8a32

Please sign in to comment.