|
|
@ -188,6 +188,13 @@ func initKeybindings() error { |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
return err |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if err := g.SetKeybinding("", gocui.KeyCtrlU, gocui.ModNone, |
|
|
|
|
|
|
|
func(g *gocui.Gui, v *gocui.View) error { |
|
|
|
|
|
|
|
clearView("Input") |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
}); err != nil { |
|
|
|
|
|
|
|
return err |
|
|
|
|
|
|
|
} |
|
|
|
if err := g.SetKeybinding("", gocui.KeyCtrlZ, gocui.ModNone, |
|
|
|
if err := g.SetKeybinding("", gocui.KeyCtrlZ, gocui.ModNone, |
|
|
|
func(g *gocui.Gui, v *gocui.View) error { |
|
|
|
func(g *gocui.Gui, v *gocui.View) error { |
|
|
|
cmdJoin([]string{"/join", lastChat}) |
|
|
|
cmdJoin([]string{"/join", lastChat}) |
|
|
|