diff options
Diffstat (limited to 'src/keymap.h')
-rw-r--r-- | src/keymap.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/keymap.h b/src/keymap.h index 140eee5322..7c80e45f8d 100644 --- a/src/keymap.h +++ b/src/keymap.h @@ -6,6 +6,9 @@ * Do ":help credits" in Vim to see a list of people who contributed. */ +#ifndef NEOVIM_KEYMAP_H +#define NEOVIM_KEYMAP_H + /* * Keycode definitions for special keys. * @@ -497,3 +500,19 @@ enum key_extra { * This is a total of 6 tokens, and is currently the longest one possible. */ #define MAX_KEY_CODE_LEN 6 + +int name_to_mod_mask(int c); +int simplify_key(int key, int *modifiers); +int handle_x_keys(int key); +char_u *get_special_key_name(int c, int modifiers); +int trans_special(char_u **srcp, char_u *dst, int keycode); +int find_special_key(char_u **srcp, int *modp, int keycode, + int keep_x_key); +int extract_modifiers(int key, int *modp); +int find_special_key_in_table(int c); +int get_special_key_code(char_u *name); +char_u *get_key_name(int i); +int get_mouse_button(int code, int *is_click, int *is_drag); +int get_pseudo_mouse_code(int button, int is_click, int is_drag); + +#endif /* NEOVIM_KEYMAP_H */ |