And arrow keys! Because, why not!
This commit is contained in:
parent
4deb581667
commit
fd6297b4fb
@ -34,12 +34,15 @@ func (this *Hierarchy) HandleKeyDown (key input.Key, numberPad bool) {
|
|||||||
})
|
})
|
||||||
if caught { return }
|
if caught { return }
|
||||||
|
|
||||||
if key == input.KeyTab {
|
switch key {
|
||||||
|
case input.KeyTab:
|
||||||
if this.modifiers.Shift {
|
if this.modifiers.Shift {
|
||||||
this.focusPrevious()
|
this.focusPrevious()
|
||||||
} else {
|
} else {
|
||||||
this.focusNext()
|
this.focusNext()
|
||||||
}
|
}
|
||||||
|
case input.KeyUp: this.focusPrevious()
|
||||||
|
case input.KeyDown: this.focusNext()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user