mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:53:05 +01:00
Add back-tab support for toxic.
This commit is contained in:
parent
484575afdb
commit
f96602d45c
3
main.c
3
main.c
@ -305,6 +305,9 @@ int main(int argc, char* argv[]) {
|
|||||||
if(ch == '\t') {
|
if(ch == '\t') {
|
||||||
w_active = (w_active + 1) % w_num;
|
w_active = (w_active + 1) % w_num;
|
||||||
}
|
}
|
||||||
|
else if(ch == KEY_BTAB) {
|
||||||
|
w_active = (w_active + w_num - 1) % w_num;
|
||||||
|
}
|
||||||
else if(ch != ERR) {
|
else if(ch != ERR) {
|
||||||
a->onKey(a, ch);
|
a->onKey(a, ch);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user