aboutsummaryrefslogtreecommitdiff
path: root/mode-key.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-05-09 12:51:41 +0100
committerThomas Adam <thomas@xteddy.org>2015-05-09 12:52:38 +0100
commit504b97b6a4314a7a052d9b05de746515e2a03628 (patch)
tree6b6316b7f7d35725bd0ce2377adae1847cc324da /mode-key.c
parent6525ca51584636ef781bda147d37d5d0d10899e0 (diff)
parent92faa2eaebd32117f01b0b7d7ae81abdfde2d935 (diff)
downloadrtmux-504b97b6a4314a7a052d9b05de746515e2a03628.tar.gz
rtmux-504b97b6a4314a7a052d9b05de746515e2a03628.tar.bz2
rtmux-504b97b6a4314a7a052d9b05de746515e2a03628.zip
Merge branch 'obsd-master'
Conflicts: tmux.h
Diffstat (limited to 'mode-key.c')
-rw-r--r--mode-key.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/mode-key.c b/mode-key.c
index c06d7ed5..5ed45bd8 100644
--- a/mode-key.c
+++ b/mode-key.c
@@ -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" },