mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
9089ea2365
commit
19f1700a68
@ -565,6 +565,8 @@ void gui_readline_init(void)
|
|||||||
key_bind("key", NULL, " ", "space", (SIGNAL_FUNC) key_combo);
|
key_bind("key", NULL, " ", "space", (SIGNAL_FUNC) key_combo);
|
||||||
key_bind("key", NULL, "^M", "return", (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, "^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 */
|
/* meta */
|
||||||
key_bind("key", NULL, "^[", "meta", (SIGNAL_FUNC) key_combo);
|
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);
|
key_bind("forward_history", "", "down", NULL, (SIGNAL_FUNC) key_forward_history);
|
||||||
|
|
||||||
/* line editing */
|
/* line editing */
|
||||||
key_bind("backspace", "", "^H", NULL, (SIGNAL_FUNC) key_backspace);
|
key_bind("backspace", "", "backspace", NULL, (SIGNAL_FUNC) key_backspace);
|
||||||
key_bind("backspace", "", "^?", NULL, (SIGNAL_FUNC) key_backspace);
|
|
||||||
key_bind("delete_character", "", "delete", NULL, (SIGNAL_FUNC) key_delete_character);
|
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_character", NULL, "^D", NULL, (SIGNAL_FUNC) key_delete_character);
|
||||||
key_bind("delete_next_word", "", NULL, NULL, (SIGNAL_FUNC) key_delete_next_word);
|
key_bind("delete_next_word", "", NULL, NULL, (SIGNAL_FUNC) key_delete_next_word);
|
||||||
|
Loading…
Reference in New Issue
Block a user