about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-10-08 00:50:28 +0100
committerJames Booth <boothj5@gmail.com>2014-10-08 00:50:28 +0100
commitf6e0a219ffb49b77a1d022ba5b33ca5c3a763c0b (patch)
treec8e28be3005d1d48e881856b792e4f09383144d8 /src/ui
parentef62104d63626b39db6e69bb38d9e088a93ff71c (diff)
downloadprofani-tty-f6e0a219ffb49b77a1d022ba5b33ca5c3a763c0b.tar.gz
Add key codes for shift arrow keys on ITerm
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index e5d643fd..a96d152d 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -2891,7 +2891,7 @@ _win_handle_page(const wint_t * const ch, const int result)
 
     if (current->type == WIN_MUC) {
         // alt up arrow
-        if ((result == KEY_CODE_YES) && (*ch == 565)) {
+        if ((result == KEY_CODE_YES) && ((*ch == 565) || (*ch == 337))) {
             current->sub_y_pos -= page_space;
 
             // went past beginning, show first page
@@ -2901,7 +2901,7 @@ _win_handle_page(const wint_t * const ch, const int result)
             win_update_virtual(current);
 
         // alt down arrow
-        } else if ((result == KEY_CODE_YES) && (*ch == 524)) {
+        } else if ((result == KEY_CODE_YES) && ((*ch == 524) || (*ch == 336))) {
             current->sub_y_pos += page_space;
 
             // only got half a screen, show full screen