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

Use numbers for shortcuv nav

Frees up letters to be used in widet menus
This commit is contained in:
Chris Cummer 2018-09-05 12:02:00 -07:00
parent 4a90383f0d
commit 74b9fd841b

View File

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