From 19f1700a68c82ae3f5d7a23ba10d9e39c6ae5deb Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 2 Feb 2002 02:22:29 +0000 Subject: [PATCH] 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 --- src/fe-text/gui-readline.c | 5 +++-- 1 file 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);