And arrow keys! Because, why not!

This commit is contained in:
Sasha Koshka 2024-07-26 20:55:34 -04:00
parent 4deb581667
commit fd6297b4fb

View File

@ -34,12 +34,15 @@ func (this *Hierarchy) HandleKeyDown (key input.Key, numberPad bool) {
})
if caught { return }
if key == input.KeyTab {
switch key {
case input.KeyTab:
if this.modifiers.Shift {
this.focusPrevious()
} else {
this.focusNext()
}
case input.KeyUp: this.focusPrevious()
case input.KeyDown: this.focusNext()
}
}