mirror of https://github.com/jroimartin/gocui.git
Update README and doc
This commit is contained in:
parent
cebc72c201
commit
b9ce982fe5
|
@ -43,7 +43,7 @@ Example
|
||||||
}
|
}
|
||||||
defer g.Close()
|
defer g.Close()
|
||||||
g.SetLayout(layout)
|
g.SetLayout(layout)
|
||||||
if err := g.SetKeybinding("", gocui.KeyCtrlC, 0, quit); err != nil {
|
if err := g.SetKeybinding("", gocui.KeyCtrlC, gocui.ModNone, quit); err != nil {
|
||||||
log.Panicln(err)
|
log.Panicln(err)
|
||||||
}
|
}
|
||||||
err = g.MainLoop()
|
err = g.MainLoop()
|
||||||
|
|
2
doc.go
2
doc.go
|
@ -24,7 +24,7 @@ Example:
|
||||||
}
|
}
|
||||||
defer g.Close()
|
defer g.Close()
|
||||||
g.SetLayout(layout)
|
g.SetLayout(layout)
|
||||||
if err := g.SetKeybinding("", gocui.KeyCtrlC, 0, quit); err != nil {
|
if err := g.SetKeybinding("", gocui.KeyCtrlC, gocui.ModNone, quit); err != nil {
|
||||||
log.Panicln(err)
|
log.Panicln(err)
|
||||||
}
|
}
|
||||||
err = g.MainLoop()
|
err = g.MainLoop()
|
||||||
|
|
Loading…
Reference in New Issue