mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Have keyboard widget manage its own help
Define help with keys This means that keys and help are automatically in sync This means that you can't define keys, but forget help This unfortunately also means that formatting may not be quite as good
This commit is contained in:
@@ -7,15 +7,6 @@ import (
|
||||
"github.com/wtfutil/wtf/wtf"
|
||||
)
|
||||
|
||||
// HelpText to display to users
|
||||
const HelpText = `
|
||||
Keyboard commands for VictorOps
|
||||
|
||||
/: Show/hide this help window
|
||||
arrow down: Scroll down the list
|
||||
arrow up: Scroll up the list
|
||||
`
|
||||
|
||||
// Widget contains text info
|
||||
type Widget struct {
|
||||
wtf.TextWidget
|
||||
|
||||
Reference in New Issue
Block a user