diff options
| author | Jeff Carr <[email protected]> | 2025-01-31 16:05:34 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-31 22:08:21 -0600 |
| commit | bac14a675bb0cf284809ff31db98f4a3799fe1f6 (patch) | |
| tree | fb8ca54f5b8fcf949fa6b57c417fc23cd5f2254e /init.go | |
| parent | b7cd6d07fcaa69d009b3f33f7c59afb16b719029 (diff) | |
lots of work to clean up my old code
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -165,11 +165,16 @@ func gocuiMain() { // This is equivalent to xev or similar to cat /dev/input on linux g.SetManagerFunc(gocuiEvent) - if err := defaultKeybindings(g); err != nil { - // normally panic here - log.Log(NOW, "defaultKeybindings(g) panic err =", err) - panic("gocuiTKdefaultkeybindings OOPS") - } + // register how the 'gocui' will work as a GO toolkit plugin + // all applications will use these keys. they are universal. + registerHandlers(g) + /* + if err := defaultKeybindings(g); err != nil { + // normally panic here + log.Log(NOW, "defaultKeybindings(g) panic err =", err) + panic("gocuiTKdefaultkeybindings OOPS") + } + */ if err := g.MainLoop(); err != nil && !errors.Is(err, gocui.ErrQuit) { log.Log(NOW, "g.MainLoop() panic err =", err) |
