mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Tabbing to widgets properly sets the IsFocused property. Closes #467
This commit is contained in:
@@ -79,6 +79,8 @@ func (tracker *FocusTracker) Next() {
|
||||
tracker.blur(tracker.Idx)
|
||||
tracker.increment()
|
||||
tracker.focus(tracker.Idx)
|
||||
|
||||
tracker.IsFocused = true
|
||||
}
|
||||
|
||||
// None removes focus from the currently-focused widget.
|
||||
@@ -100,6 +102,8 @@ func (tracker *FocusTracker) Prev() {
|
||||
tracker.blur(tracker.Idx)
|
||||
tracker.decrement()
|
||||
tracker.focus(tracker.Idx)
|
||||
|
||||
tracker.IsFocused = true
|
||||
}
|
||||
|
||||
func (tracker *FocusTracker) Refocus() {
|
||||
|
||||
Reference in New Issue
Block a user