about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-05-26 19:53:44 +0100
committerJames Booth <boothj5@gmail.com>2014-05-26 19:53:44 +0100
commit355cd27f6c3f34f0fef17fdbbfc7bc8222c8451a (patch)
tree65cda3cef7461cd7afd1116a1ed653dec54e5daa /src
parent52f66fde105eb48f114d6c92ff71da78ec458466 (diff)
downloadprofani-tty-355cd27f6c3f34f0fef17fdbbfc7bc8222c8451a.tar.gz
Added character codes for alt-left, alt-right
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 aa587594..8ac01b45 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -370,12 +370,12 @@ _handle_edit(int result, const wint_t ch, char *input, int *size)
         return 1;
 
     // ALT-LEFT
-    } else if ((result == KEY_CODE_YES) && (ch == 537)) {
+    } else if ((result == KEY_CODE_YES) && (ch == 537 || ch == 542)) {
         ui_previous_win();
         return 1;
 
     // ALT-RIGHT
-    } else if ((result == KEY_CODE_YES) && (ch == 552)) {
+    } else if ((result == KEY_CODE_YES) && (ch == 552 || ch == 557)) {
         ui_next_win();
         return 1;