1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Really don't have nav characters > 9

This commit is contained in:
Chris Cummer 2018-09-05 12:05:31 -07:00
parent 74b9fd841b
commit 0824ccf15c

View File

@ -32,13 +32,13 @@ func (tracker *FocusTracker) AssignHotKeys() {
i := 1
for _, focusable := range tracker.focusables() {
focusable.SetFocusChar(string('0' + i))
i++
// Don't have nav characters > "9"
if i >= 10 {
// Don't have nav characters > "9"
break
}
focusable.SetFocusChar(string('0' + i))
i++
}
}