summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-12-22 09:31:08 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-12-22 09:31:08 +0000
commit5233063825af0c01515622a898fb76d021495857 (patch)
treef0678430d7939f8836067a1b9bd8a6ac1af0893b /src/gui/curses
parent9eeece2ccb25a8da4b5cdb610dbcd4ea3b31583f (diff)
downloadweechat-5233063825af0c01515622a898fb76d021495857.zip
Added keys: Ctrl+A (=home), Ctrl+E (=end), Ctrl+W (=ctrl+backspace)
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-input.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c
index f78b87d56..e6ba1fa1d 100644
--- a/src/gui/curses/gui-input.c
+++ b/src/gui/curses/gui-input.c
@@ -210,8 +210,9 @@ gui_read_keyb ()
}
}
break;
- /* home key */
+ /* home key or Control + A */
case KEY_HOME:
+ case 0x01:
if (!gui_current_window->buffer->dcc)
{
if (gui_current_window->buffer->input_buffer_pos > 0)
@@ -221,8 +222,9 @@ gui_read_keyb ()
}
}
break;
- /* end key */
+ /* end key or Control + E */
case KEY_END:
+ case 0x05:
if (!gui_current_window->buffer->dcc)
{
if (gui_current_window->buffer->input_buffer_pos <
@@ -267,8 +269,9 @@ gui_read_keyb ()
}
}
break;
- /* Control + Backspace */
+ /* Control + Backspace or Control + W */
case 0x08:
+ case 0x17:
if (!gui_current_window->buffer->dcc)
gui_delete_previous_word (gui_current_window->buffer);
break;