I noticed that the code which handles tty switching is in compositor/seat/seat.c Currently wlc uses hard-coded codes for the tty switching. But I think there is something you maybe don't want - the if below (at compositor/seat/seat.c around line 118) would switch to a different tty even when I press ctrl-alt-kp_1-9(the keypad) for example, which sends the user to non-existing tty(black screen with blinking cursor). Maybe you can change it so that it checks for ev->key.code <= 71 which are only the keys f1-f12. I can send a pull request if you want me to do so.
Relevant code:
I noticed that the code which handles tty switching is in compositor/seat/seat.c Currently wlc uses hard-coded codes for the tty switching. But I think there is something you maybe don't want - the if below (at compositor/seat/seat.c around line 118) would switch to a different tty even when I press ctrl-alt-kp_1-9(the keypad) for example, which sends the user to non-existing tty(black screen with blinking cursor). Maybe you can change it so that it checks for
ev->key.code <= 71
which are only the keys f1-f12. I can send a pull request if you want me to do so. Relevant code: