From 43a5ee2d4fd18200716069712fda12e7fd4e0a33 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Sun, 30 Mar 2014 21:31:20 -0400 Subject: [PATCH] esc isn't printable --- src/chat.c | 2 +- src/groupchat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat.c b/src/chat.c index be27afa..05478b8 100644 --- a/src/chat.c +++ b/src/chat.c @@ -510,7 +510,7 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr) getmaxyx(self->window, y2, x2); int cur_len = 0; - if (ltr && (key == T_KEY_ESC)) { /* ESC key: Toggle history scroll mode */ + if (!ltr && (key == T_KEY_ESC)) { /* ESC key: Toggle history scroll mode */ bool scroll = ctx->hst->scroll_mode ? false : true; line_info_toggle_scroll(self, scroll); } diff --git a/src/groupchat.c b/src/groupchat.c index 106174b..a558d4c 100644 --- a/src/groupchat.c +++ b/src/groupchat.c @@ -334,7 +334,7 @@ static void groupchat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr) getmaxyx(self->window, y2, x2); int cur_len = 0; - if (ltr && (key == T_KEY_ESC) ) { /* ESC key: Toggle history scroll mode */ + if (!ltr && (key == T_KEY_ESC) ) { /* ESC key: Toggle history scroll mode */ bool scroll = ctx->hst->scroll_mode ? false : true; line_info_toggle_scroll(self, scroll); }