diff options
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) |
