1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-28 16:56:46 +02:00

make ctrl-] [ keys switch pages

This commit is contained in:
Jfreegman
2013-12-06 20:56:30 -05:00
parent f942982f4e
commit d232538317
3 changed files with 10 additions and 6 deletions

View File

@ -221,7 +221,7 @@ void set_next_window(int ch)
ToxWindow *inf = active_window;
while (true) {
if (ch == '\t') {
if (ch == '\t' || ch == T_KEY_NEXT) {
if (++active_window > end)
active_window = windows;
} else if (--active_window < windows)
@ -348,7 +348,7 @@ void draw_active_window(Tox *m)
ch = getch();
#endif
if (ch == '\t' || ch == KEY_BTAB)
if (ch == '\t' || ch == KEY_BTAB || ch == T_KEY_NEXT || ch == T_KEY_PREV)
set_next_window((int) ch);
else if (ch != ERR)
a->onKey(a, m, ch);