You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
308 B

package main
import ""
type keybinding struct {
viewName string
key interface{}
mod gocui.Modifier
handler func(*gocui.Gui, *gocui.View) error
func (k *keybinding) Register(g *gocui.Gui) error {
return g.SetKeybinding(k.viewName, k.key, k.mod, k.handler)