diff options
| author | Jeff Carr <[email protected]> | 2023-04-26 21:36:56 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-26 21:36:56 -0500 |
| commit | 076b0e4077f3854f7c5e487e83cfd590d14e7aeb (patch) | |
| tree | 6fb05b18c1cb896b39dc359fa32ec6874fc8ac29 /toolkit/gocui/keybindings.go | |
| parent | e3cf42f1da9ec0ed07a7f346a0ce9c9ff10295c1 (diff) | |
gocui: standard close
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/keybindings.go')
| -rw-r--r-- | toolkit/gocui/keybindings.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/toolkit/gocui/keybindings.go b/toolkit/gocui/keybindings.go index 66c098b..2a6a982 100644 --- a/toolkit/gocui/keybindings.go +++ b/toolkit/gocui/keybindings.go @@ -75,21 +75,19 @@ func addDebugKeys(g *gocui.Gui) { // exit g.SetKeybinding("", 'q', gocui.ModNone, func(g *gocui.Gui, v *gocui.View) error { - me.baseGui.Close() - sendBackQuit() + standardExit() return nil }) g.SetKeybinding("", gocui.KeyCtrlC, gocui.ModNone, func(g *gocui.Gui, v *gocui.View) error { - me.baseGui.Close() - sendBackQuit() + standardExit() return nil }) // panic g.SetKeybinding("", 'p', gocui.ModNone, func(g *gocui.Gui, v *gocui.View) error { - me.baseGui.Close() + standardExit() panic("forced panic in gocui") return nil }) |
