diff options
| author | Jeff Carr <[email protected]> | 2023-04-27 00:10:23 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-27 00:10:23 -0500 |
| commit | f5468d9c1cdaf1b0a2e44fcc78621bfae23e44fa (patch) | |
| tree | f4da96c8302f70a8c683fae58ed568653f51cf2f /toolkit/gocui/keybindings.go | |
| parent | efa1b7eba77254d2607dae47e3e6ea70fc619932 (diff) | |
gocui: better output handlingv0.8.4
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, 8 insertions, 0 deletions
diff --git a/toolkit/gocui/keybindings.go b/toolkit/gocui/keybindings.go index 2a6a982..cf948fe 100644 --- a/toolkit/gocui/keybindings.go +++ b/toolkit/gocui/keybindings.go @@ -6,6 +6,7 @@ package main import ( "github.com/awesome-gocui/gocui" + "git.wit.org/wit/gui/toolkit" ) func defaultKeybindings(g *gocui.Gui) error { @@ -83,6 +84,13 @@ func addDebugKeys(g *gocui.Gui) { standardExit() return nil }) + g.SetKeybinding("", gocui.KeyCtrlD, gocui.ModNone, + func(g *gocui.Gui, v *gocui.View) error { + var a toolkit.Action + a.ActionType = toolkit.EnableDebug + me.callback <- a + return nil + }) // panic g.SetKeybinding("", 'p', gocui.ModNone, |
