1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
wtf/modules/pihole/keyboard.go
Chris Cummer d6c8e08c2f Remove common functionality from KeyboardWidget and into Base
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-12-21 02:51:14 -08:00

10 lines
314 B
Go

package pihole
func (widget *Widget) initializeKeyboardControls() {
widget.InitializeHelpTextKeyboardControl(widget.ShowHelp)
widget.InitializeRefreshKeyboardControl(widget.Refresh)
widget.SetKeyboardChar("d", widget.disable, "disable Pi-hole")
widget.SetKeyboardChar("e", widget.enable, "enable Pi-hole")
}