about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-08-13 21:40:18 +0100
committerJames Booth <boothj5@gmail.com>2013-08-13 21:40:18 +0100
commit6ea17d8e01af4a1867f32d1a9d9166bf10ce8ba3 (patch)
tree66d9a18a85ec7c448a71c52cc06d48bd3c2e5291 /src
parent6651b13bd0a68da3688cf2f29b467194ab3695f9 (diff)
parentb1768f942c086410abfb7ca03e3a20fe472fafe6 (diff)
downloadprofani-tty-6ea17d8e01af4a1867f32d1a9d9166bf10ce8ba3.tar.gz
Merge branch 'master' into nextdev
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index feb4a0ba..0ab53131 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -263,7 +263,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 == 545 || ch == 540 || ch == 539) && (inp_x > 0)) {
+    if ((result == KEY_CODE_YES) && (ch == 547 || ch == 545 || 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);
@@ -313,7 +313,7 @@ _handle_edit(int result, const wint_t ch, char *input, int *size)
         return 1;
 
     // CTRL-RIGHT
-    } else if ((result == KEY_CODE_YES) && (ch == 560 || ch == 555 || ch == 554) && (inp_x < display_size)) {
+    } else if ((result == KEY_CODE_YES) && (ch == 562 || ch == 560 || ch == 555 || 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);