summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-02 02:22:29 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-02 02:22:29 +0000
commit19f1700a68c82ae3f5d7a23ba10d9e39c6ae5deb (patch)
treee36f6713cab857b7265f465b6a18cac0c930673a /src
parent9089ea2365fcd8dbf52386c54d3f3561d3931d90 (diff)
downloadirssi-19f1700a68c82ae3f5d7a23ba10d9e39c6ae5deb.zip
Add ^H and ^? as "backspace" key, so you can use meta-backspace etc.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2370 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/gui-readline.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 0bdbbf0e..450f13ba 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -565,6 +565,8 @@ void gui_readline_init(void)
key_bind("key", NULL, " ", "space", (SIGNAL_FUNC) key_combo);
key_bind("key", NULL, "^M", "return", (SIGNAL_FUNC) key_combo);
key_bind("key", NULL, "^J", "return", (SIGNAL_FUNC) key_combo);
+ key_bind("key", NULL, "^H", "backspace", (SIGNAL_FUNC) key_combo);
+ key_bind("key", NULL, "^?", "backspace", (SIGNAL_FUNC) key_combo);
/* meta */
key_bind("key", NULL, "^[", "meta", (SIGNAL_FUNC) key_combo);
@@ -616,8 +618,7 @@ void gui_readline_init(void)
key_bind("forward_history", "", "down", NULL, (SIGNAL_FUNC) key_forward_history);
/* line editing */
- key_bind("backspace", "", "^H", NULL, (SIGNAL_FUNC) key_backspace);
- key_bind("backspace", "", "^?", NULL, (SIGNAL_FUNC) key_backspace);
+ key_bind("backspace", "", "backspace", NULL, (SIGNAL_FUNC) key_backspace);
key_bind("delete_character", "", "delete", NULL, (SIGNAL_FUNC) key_delete_character);
key_bind("delete_character", NULL, "^D", NULL, (SIGNAL_FUNC) key_delete_character);
key_bind("delete_next_word", "", NULL, NULL, (SIGNAL_FUNC) key_delete_next_word);