mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
17 lines
537 B
Go
17 lines
537 B
Go
package jenkins
|
|
|
|
import "github.com/gdamore/tcell"
|
|
|
|
func (widget *Widget) initializeKeyboardControls() {
|
|
widget.SetKeyboardChar("/", widget.ShowHelp)
|
|
widget.SetKeyboardChar("j", widget.next)
|
|
widget.SetKeyboardChar("k", widget.prev)
|
|
widget.SetKeyboardChar("o", widget.openJob)
|
|
widget.SetKeyboardChar("r", widget.Refresh)
|
|
|
|
widget.SetKeyboardKey(tcell.KeyDown, widget.next)
|
|
widget.SetKeyboardKey(tcell.KeyEnter, widget.openJob)
|
|
widget.SetKeyboardKey(tcell.KeyEsc, widget.unselect)
|
|
widget.SetKeyboardKey(tcell.KeyUp, widget.prev)
|
|
}
|