mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
Extract keymap.c from misc2.c
This commit is contained in:

committed by
Thiago de Arruda

parent
9c6811b23a
commit
fdba1761f6
19
src/keymap.h
19
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 */
|
||||
|
Reference in New Issue
Block a user