diff options
author | nicm <nicm> | 2015-05-08 16:33:29 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-05-08 16:33:29 +0000 |
commit | 74b2c40b1b2f38b1aafe4178cb33db63d3be8de0 (patch) | |
tree | 87bd9789e3a2817a57df1b929600697ed92932d0 /mode-key.c | |
parent | a538141a72882e10988b68d7d1ede94cbb7140c1 (diff) | |
download | rtmux-74b2c40b1b2f38b1aafe4178cb33db63d3be8de0.tar.gz rtmux-74b2c40b1b2f38b1aafe4178cb33db63d3be8de0.tar.bz2 rtmux-74b2c40b1b2f38b1aafe4178cb33db63d3be8de0.zip |
mode_key_entry can go into mode-key.c; also a few spaces->tabs.
Diffstat (limited to 'mode-key.c')
-rw-r--r-- | mode-key.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -38,6 +38,20 @@ * (any matching MODEKEYEDIT_SWITCHMODE*) are special-cased to do this. */ +/* Entry in the default mode key tables. */ +struct mode_key_entry { + int key; + + /* + * Editing mode for vi: 0 is edit mode, keys not in the table are + * returned as MODEKEY_OTHER; 1 is command mode, keys not in the table + * are returned as MODEKEY_NONE. This is also matched on, allowing some + * keys to be bound in edit mode. + */ + int mode; + enum mode_key_cmd cmd; +}; + /* Edit keys command strings. */ const struct mode_key_cmdstr mode_key_cmdstr_edit[] = { { MODEKEYEDIT_BACKSPACE, "backspace" }, |