1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-27 11:46:44 +02:00

add ability to toggle groupchat peerlist with ctrl-b

This commit is contained in:
Jfreegman
2014-10-08 02:45:08 -04:00
parent cc0145d561
commit e6b18231c0
6 changed files with 80 additions and 26 deletions

View File

@ -32,6 +32,7 @@
#include "toxic_strings.h"
#include "line_info.h"
#include "notify.h"
#include "groupchat.h"
/* add a char to input field and buffer */
void input_new_char(ToxWindow *self, wint_t key, int x, int y, int mx_x, int mx_y)
@ -255,6 +256,14 @@ bool input_handle(ToxWindow *self, wint_t key, int x, int y, int mx_x, int mx_y)
force_refresh(self->chatwin->history);
break;
case T_KEY_C_B:
if (self->is_groupchat) {
self->show_peerlist ^= 1;
redraw_groupchat_win(self);
}
break;
default:
match = false;
break;