1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 22:13:26 +01:00

esc isn't printable

This commit is contained in:
Jfreegman 2014-03-30 21:31:20 -04:00
parent bd817e77f0
commit 43a5ee2d4f
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 2 additions and 2 deletions

View File

@ -510,7 +510,7 @@ static void chat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
getmaxyx(self->window, y2, x2); getmaxyx(self->window, y2, x2);
int cur_len = 0; 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; bool scroll = ctx->hst->scroll_mode ? false : true;
line_info_toggle_scroll(self, scroll); line_info_toggle_scroll(self, scroll);
} }

View File

@ -334,7 +334,7 @@ static void groupchat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
getmaxyx(self->window, y2, x2); getmaxyx(self->window, y2, x2);
int cur_len = 0; 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; bool scroll = ctx->hst->scroll_mode ? false : true;
line_info_toggle_scroll(self, scroll); line_info_toggle_scroll(self, scroll);
} }