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:
parent
4a90383f0d
commit
74b9fd841b
@ -29,11 +29,16 @@ func (tracker *FocusTracker) AssignHotKeys() {
|
||||
return
|
||||
}
|
||||
|
||||
i := 0
|
||||
i := 1
|
||||
|
||||
for _, focusable := range tracker.focusables() {
|
||||
focusable.SetFocusChar(string('a' + i))
|
||||
focusable.SetFocusChar(string('0' + i))
|
||||
i++
|
||||
|
||||
if i >= 10 {
|
||||
// Don't have nav characters > "9"
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user