diff options
| author | Teddy Wing | 2018-09-30 20:43:27 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-09-30 20:43:27 +0200 |
| commit | dc606d756ceecf5ae8a52e607fd4a68727fd2529 (patch) | |
| tree | 12321df9e5df7462ae875193ea61ac8872a21a03 /example.dkmap | |
| parent | 7801f2561227526e7bacf9915bb4d7f63cf14449 (diff) | |
| download | dome-key-map-dc606d756ceecf5ae8a52e607fd4a68727fd2529.tar.bz2 | |
special_key(): Handle modifier + character special keys
Previously we were able to parse modifier + KeyCode (`<C-Enter>`) special
keys and plain KeyCode ones (`<Esc>`).
This change adds parsing support for the final type of special key,
modifier + character (e.g. `<C-l>`).
action_character():
Move the `map` outside of this function and into `action_map()` to allow
us to reuse the parsed `char` in `special_key()`.
key_modifier():
* Move the `many()` parser and `Option` handling outside of this
function and into `special_key()`. Doing so enables us to say:
<C-l> // Character special keys _require_ a modifier (thus
// `many1`)
<[C-]Left> // KeyCode special keys may or may not have a modifier
// (thus `many`)
* Rename from `key_modifiers()` to singular now that it only parses a
single modifier.
special_key():
Parse both character and KeyCode special keys with modifiers.
action_parses_map_with_modifier():
Change input string to include a KeyCode-style special key with a
modifier since we didn't have one previously. This ensures we test both
kinds of special keys.
Diffstat (limited to 'example.dkmap')
0 files changed, 0 insertions, 0 deletions
