diff --git a/main.go b/main.go index 696fc2d..b0c0432 100644 --- a/main.go +++ b/main.go @@ -120,6 +120,15 @@ func initKeybindings() error { }); err != nil { return err } + if err := g.SetKeybinding("Edit", gocui.KeyCtrlC, gocui.ModNone, + func(g *gocui.Gui, v *gocui.View) error { + popupView("Chat") + popupView("Input") + clearView("Edit") + return nil + }); err != nil { + return err + } if err := g.SetKeybinding("Input", gocui.KeyEnter, gocui.ModNone, func(g *gocui.Gui, v *gocui.View) error { return handleInput("Input")