summaryrefslogtreecommitdiffstats
path: root/mode-key.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-15 19:27:31 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-15 19:27:31 +0000
commitd29ca39e0eb6a47986d05ebefce23349e1635c00 (patch)
tree0a087fa32b7bd8746443c21e5f473aa14cbc1004 /mode-key.c
parentc5c4cc7557f107547d3de8f530395f87fa37d1ee (diff)
Two new commands, choose-window and choose-session which work only when bound to a key and allow the window or session to be selected from a list.
Diffstat (limited to 'mode-key.c')
-rw-r--r--mode-key.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mode-key.c b/mode-key.c
index 4526a6f4..f5663eee 100644
--- a/mode-key.c
+++ b/mode-key.c
@@ -1,4 +1,4 @@
-/* $Id: mode-key.c,v 1.5 2009-01-09 16:45:58 nicm Exp $ */
+/* $Id: mode-key.c,v 1.6 2009-01-15 19:27:31 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -32,6 +32,7 @@ const struct mode_key_entry mode_key_table_vi[] = {
{ MODEKEY_COPYSEL, '\r' },
{ MODEKEY_DOWN, 'j' },
{ MODEKEY_DOWN, KEYC_DOWN },
+ { MODEKEY_ENTER, '\r' },
{ MODEKEY_EOL, '$' },
{ MODEKEY_LEFT, 'h' },
{ MODEKEY_LEFT, KEYC_LEFT },
@@ -55,6 +56,7 @@ const struct mode_key_entry mode_key_table_emacs[] = {
{ MODEKEY_COPYSEL, '\027' },
{ MODEKEY_COPYSEL, KEYC_ADDESC('w') },
{ MODEKEY_DOWN, KEYC_DOWN },
+ { MODEKEY_ENTER, '\r' },
{ MODEKEY_EOL, '\005' },
{ MODEKEY_LEFT, '\002' },
{ MODEKEY_LEFT, KEYC_LEFT },