diff options
| author | Jeff Carr <[email protected]> | 2025-02-12 17:00:32 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-12 17:00:32 -0600 |
| commit | fa9ec36dbb05877a802ac6b5e2d358a2372f9a68 (patch) | |
| tree | f4e218ca3de7acca53ba5044be77696bbdef4554 /eventBindings.go | |
| parent | 8c459da9f7a406b01bfd187e09ed9d4113d3ef36 (diff) | |
initOnce()
Diffstat (limited to 'eventBindings.go')
| -rw-r--r-- | eventBindings.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eventBindings.go b/eventBindings.go index c9a4a08..f78737c 100644 --- a/eventBindings.go +++ b/eventBindings.go @@ -5,6 +5,7 @@ package main import ( "syscall" + "time" "github.com/awesome-gocui/gocui" "go.wit.com/log" @@ -53,6 +54,10 @@ func registerHandlers(g *gocui.Gui) { g.SetKeybinding("", 'f', gocui.ModNone, theFind) // 'f' shows what is under your mouse g.SetKeybinding("", 'd', gocui.ModNone, theLetterD) // 'd' toggles on and off debugging buttons g.SetKeybinding("", 'q', gocui.ModNone, quit) // 'q' only exits gocui. plugin stays alive (?) + + time.Sleep(100 * time.Millisecond) + // tell 'tree' that we are okay to start talking to + me.myTree.InitOK() } // flips on 'super mouse' mode // this was awesome for debugging gocui. never remove this code. |
