mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Formspec: change tabs with ctrl(+shift)+tab (#16167)
This change makes it easier to go to the next/previous tab using keyboard controls.
This commit is contained in:
parent
fde6384a09
commit
4454d71d7d
2 changed files with 28 additions and 1 deletions
|
@ -831,8 +831,10 @@ bool GUITable::OnEvent(const SEvent &event)
|
|||
return true;
|
||||
}
|
||||
else if (event.KeyInput.Key == KEY_ESCAPE ||
|
||||
event.KeyInput.Key == KEY_SPACE) {
|
||||
event.KeyInput.Key == KEY_SPACE ||
|
||||
(event.KeyInput.Key == KEY_TAB && event.KeyInput.Control)) {
|
||||
// pass to parent
|
||||
return IGUIElement::OnEvent(event);
|
||||
}
|
||||
else if (event.KeyInput.PressedDown && event.KeyInput.Char) {
|
||||
// change selection based on text as it is typed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue