diff options
author | James Booth <boothj5@gmail.com> | 2014-10-09 22:43:06 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-10-09 22:43:06 +0100 |
commit | ed9266f959a28b1d46fbffbd614b7bbaddd6216a (patch) | |
tree | 9b30fbb1920e586181d1a1779810a972f7ccc4ca /src/ui | |
parent | 36157367628633f96ef3e7a473bd8b7823a3226a (diff) | |
download | profani-tty-ed9266f959a28b1d46fbffbd614b7bbaddd6216a.tar.gz |
Added key code for ctrl-left ctrl-right
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/inputwin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 153361a6..3e587d3e 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -290,7 +290,7 @@ _handle_edit(int result, const wint_t ch, char *input, int *size) inp_x = getcurx(inp_win); // CTRL-LEFT - if ((result == KEY_CODE_YES) && (ch == 547 || ch == 545 || ch == 540 || ch == 539) && (inp_x > 0)) { + if ((result == KEY_CODE_YES) && (ch == 547 || ch == 545 || ch == 544 || ch == 540 || ch == 539) && (inp_x > 0)) { input[*size] = '\0'; gchar *curr_ch = g_utf8_offset_to_pointer(input, inp_x); curr_ch = g_utf8_find_prev_char(input, curr_ch); @@ -340,7 +340,7 @@ _handle_edit(int result, const wint_t ch, char *input, int *size) return 1; // CTRL-RIGHT - } else if ((result == KEY_CODE_YES) && (ch == 562 || ch == 560 || ch == 555 || ch == 554) && (inp_x < display_size)) { + } else if ((result == KEY_CODE_YES) && (ch == 562 || ch == 560 || ch == 555 || ch == 559 || ch == 554) && (inp_x < display_size)) { input[*size] = '\0'; gchar *curr_ch = g_utf8_offset_to_pointer(input, inp_x); gchar *next_ch = g_utf8_find_next_char(curr_ch, NULL); |