summaryrefslogtreecommitdiff
path: root/toolkit/gocui/keybindings.go
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/gocui/keybindings.go')
-rw-r--r--toolkit/gocui/keybindings.go8
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,