summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/init.go b/init.go
index c9272f2..9b9f152 100644
--- a/init.go
+++ b/init.go
@@ -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)