1
0
mirror of https://github.com/Tha14/toxic.git synced 2026-01-24 23:53:15 +01:00

Keybind defaults moved to settings.c; conf keybinds not reading correctly yet

This commit is contained in:
matt
2014-07-28 00:06:25 +01:00
parent f630a3e604
commit 9f01a45b1f
5 changed files with 84 additions and 37 deletions

View File

@@ -368,12 +368,12 @@ static void groupchat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
} else {
beep();
}
} else if (key == T_KEY_C_RB) { /* Scroll peerlist up and down one position */
} else if (key == user_settings_->key_peer_list_down) { /* Scroll peerlist up and down one position */
int L = y2 - CHATBOX_HEIGHT - SDBAR_OFST;
if (groupchats[self->num].side_pos < groupchats[self->num].num_peers - L)
++groupchats[self->num].side_pos;
} else if (key == T_KEY_C_LB) {
} else if (key == user_settings_->key_peer_list_up) {
if (groupchats[self->num].side_pos > 0)
--groupchats[self->num].side_pos;
} else if (key == '\n') {