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

Better name in the FocusTracker

This commit is contained in:
Chris Cummer 2018-08-30 07:29:33 -07:00
parent dccf04a27a
commit 8824604330

View File

@ -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
}
@ -38,7 +38,7 @@ func (tracker *FocusTracker) AssignHotKeys() {
}
func (tracker *FocusTracker) FocusOn(char string) bool {
if !tracker.withShortcuts() {
if !tracker.useNavShortcuts() {
return false
}
@ -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)
}