robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
6f5fae3f8c
master
1#pragma once 2 3#include "nvim/api/private/defs.h" // IWYU pragma: keep 4 5/// Structured info for a key chord. 6/// 7/// XXX: The `key`/`key_alt` strings may point into `key_mem` or into a static buffer owned by 8/// str2special()/get_special_key(). All are only valid until the next such call. 9struct keychord { 10int mods ;///< Modifier mask (see `mod_mask_table`), e.g. `<C-A>` yields Ctrl and Shift. 11char key_mem ;///< Backing storage for a single-byte `key`/`key_alt` (see above). 12String key ;///< Key without modifiers, normalized, e.g. `<C-A>` => `a`, `<lt>` => `<`. 13String key_alt ;///< Alternative spelling of `key`, e.g. `lt` for `<`. Empty (NULL) if same. 14};