summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2015-11-02 00:15:58 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2015-11-02 00:15:58 +0100
commit50775e92e64561837e6c805fc8fef19aedaafeb4 (patch)
tree84c5930e3a761e8bda34c50d15987081af2043ba /src/fe-text
parent8d1f667100fdd5ff331f4f9e4b922c4a9db7c53d (diff)
parent58a166484ad7eab33c1ad72b64016e5aacebfaf5 (diff)
downloadirssi-50775e92e64561837e6c805fc8fef19aedaafeb4.zip
Merge pull request #330 from dequis/xterm-keypad-enter
Add xterm's keypad enter, meta-O-M to "key return" bindings
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-readline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index ec61e317..dc7185e7 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -1020,6 +1020,8 @@ void gui_readline_init(void)
key_bind("key", NULL, "meta2-5F", "cend", (SIGNAL_FUNC) key_combo);
key_bind("key", NULL, "meta2-1;5F", "cend", (SIGNAL_FUNC) key_combo);
+ key_bind("key", NULL, "meta-O-M", "return", (SIGNAL_FUNC) key_combo);
+
/* cursor movement */
key_bind("backward_character", "Move the cursor a character backward", "left", NULL, (SIGNAL_FUNC) key_backward_character);
key_bind("forward_character", "Move the cursor a character forward", "right", NULL, (SIGNAL_FUNC) key_forward_character);