Bug Fixes
This commit is contained in:
@@ -285,8 +285,7 @@ func (w *LinearLayout) ActivateWidget(n Widget) {
|
||||
func (w *LinearLayout) ActivateNext() bool {
|
||||
var found bool
|
||||
for i := range w.widgets {
|
||||
if found && w.widgets[i].Focusable() {
|
||||
w.widgets[i].SetActive(true)
|
||||
if found && w.widgets[i].SetActive(true) {
|
||||
return true
|
||||
} else if w.widgets[i].Active() {
|
||||
found = true
|
||||
@@ -299,8 +298,7 @@ func (w *LinearLayout) ActivateNext() bool {
|
||||
func (w *LinearLayout) ActivatePrev() bool {
|
||||
var found bool
|
||||
for i := len(w.widgets) - 1; i >= 0; i-- {
|
||||
if found && w.widgets[i].Focusable() {
|
||||
w.widgets[i].SetActive(true)
|
||||
if found && w.widgets[i].SetActive(true) {
|
||||
return true
|
||||
} else if w.widgets[i].Active() {
|
||||
found = true
|
||||
|
||||
Reference in New Issue
Block a user