mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
16 lines
595 B
Go
16 lines
595 B
Go
package mercurial
|
|
|
|
import "github.com/gdamore/tcell"
|
|
|
|
func (widget *Widget) initializeKeyboardControls() {
|
|
widget.InitializeRefreshKeyboardControl(widget.Refresh)
|
|
|
|
widget.SetKeyboardChar("l", widget.NextSource, "Select next source")
|
|
widget.SetKeyboardChar("h", widget.PrevSource, "Select previous source")
|
|
widget.SetKeyboardChar("p", widget.Pull, "Pull repo")
|
|
widget.SetKeyboardChar("c", widget.Checkout, "Checkout branch")
|
|
|
|
widget.SetKeyboardKey(tcell.KeyRight, widget.NextSource, "Select next source")
|
|
widget.SetKeyboardKey(tcell.KeyLeft, widget.PrevSource, "Select previous source")
|
|
}
|