From fac4885cc7ffc5f4b9e9b7d595087b032d660a3a Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Sun, 5 Jul 2026 12:17:16 +0200 Subject: [PATCH] Improve docs for legacy modes --- src/excmds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/excmds.ts b/src/excmds.ts index 3f2f5fe8..3619803a 100644 --- a/src/excmds.ts +++ b/src/excmds.ts @@ -4421,7 +4421,7 @@ export function comclear(name: string) { Modifiers are truncated to a single character, so Ctrl -> C, Alt -> A, and Shift -> S. Shift is a bit special as it is only required if Shift does not change the key inputted, e.g. `` is OK, but `` should just be `A`. - Additionally, you can bind explicitly to a keydown or keyup event with the `D` and `U` modifiers respectively. You can make any bind optional by giving it a `?` modifier. Any bind which does not have an explicit `U` or `D` is interpreted as if it is followed by an optional keyup event, unless it is the final key. For example, `gg` becomes `gg`. Explicit keydown events, e.g. ``, are not allowed to be the automatic repeat firings you get if you hold the key down. + Additionally, you can bind explicitly to a keydown or keyup event with the `D` and `U` modifiers respectively. You can make any bind optional by giving it a `?` modifier. Any bind which does not have an explicit `U` or `D` is interpreted as if it is followed by an optional keyup event, unless it is the final key. For example, `gg` becomes `gg`. Explicit keydown events, e.g. ``, are not allowed to be the automatic repeat firings you get if you hold the key down. `hint` and `gobble` mode do not currently support `keyup` events. An imaginative use of this is a "layer" where holding a key down changes the rest of the bindings: