add comment about possible solution
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
55af1447e4
commit
fbb29afb49
3
keys.go
3
keys.go
|
@ -1,6 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"github.com/jroimartin/gocui"
|
||||
)
|
||||
|
||||
|
@ -18,6 +20,7 @@ var bindings = [...]Binding{
|
|||
|
||||
func keybindings(g *gocui.Gui) error {
|
||||
for _, b := range bindings {
|
||||
// IDEA: I can pass a method instead of a function here
|
||||
if err := g.SetKeybinding("", b.Key, b.Mod, b.Handler); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue