Skip to content

Commit

Permalink
Better name in the FocusTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
senorprogrammer committed Aug 30, 2018
1 parent dccf04a commit 8824604
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wtf/focus_tracker.go
Expand Up @@ -25,7 +25,7 @@ type FocusTracker struct {
// AssignHotKeys assigns an alphabetic keyboard character to each focusable
// widget so that the widget can be brought into focus by pressing that keyboard key
func (tracker *FocusTracker) AssignHotKeys() {
if !tracker.withShortcuts() {
if !tracker.useNavShortcuts() {
return
}

Expand All @@ -38,7 +38,7 @@ func (tracker *FocusTracker) AssignHotKeys() {
}

func (tracker *FocusTracker) FocusOn(char string) bool {
if !tracker.withShortcuts() {
if !tracker.useNavShortcuts() {
return false
}

Expand Down Expand Up @@ -176,6 +176,6 @@ func (tracker *FocusTracker) increment() {
}
}

func (tracker *FocusTracker) withShortcuts() bool {
func (tracker *FocusTracker) useNavShortcuts() bool {
return Config.UBool("wtf.navigation.shortcuts", true)
}

0 comments on commit 8824604

Please sign in to comment.