Browse Source

Add Ctrl-U for clearing line to be standard w/ other editors

master
Gregory Rudolph 2 years ago
parent
commit
aaebfb5a2f
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: EF64F3CBD1A1EBDD
  1. 7
      main.go

7
main.go

@ -188,6 +188,13 @@ func initKeybindings() error { @@ -188,6 +188,13 @@ func initKeybindings() error {
}); err != nil {
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,
func(g *gocui.Gui, v *gocui.View) error {
cmdJoin([]string{"/join", lastChat})

Loading…
Cancel
Save