mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
Added VT switching to every example
This commit is contained in:
parent
fa6b3b290c
commit
d87574948e
4 changed files with 10 additions and 0 deletions
|
|
@ -123,6 +123,10 @@ static void handle_keyboard_key(struct keyboard_state *kbstate,
|
|||
update_velocities(kbstate->compositor, 0, 16);
|
||||
break;
|
||||
}
|
||||
|
||||
if (sym >= XKB_KEY_F1 && sym <= XKB_KEY_F12) {
|
||||
wlr_session_change_vt(kbstate->compositor->session, sym - XKB_KEY_F1 + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue