Skip to content

Commit

Permalink
Use numbers for shortcuv nav
Browse files Browse the repository at this point in the history
Frees up letters to be used in widet menus
  • Loading branch information
senorprogrammer committed Sep 5, 2018
1 parent 4a90383 commit 74b9fd8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions wtf/focus_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit 74b9fd8

Please sign in to comment.