Update README and doc

This commit is contained in:
Roi Martin 2015-01-24 14:26:26 +01:00
parent cebc72c201
commit b9ce982fe5
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ Example
}
defer g.Close()
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)
}
err = g.MainLoop()

2
doc.go
View File

@ -24,7 +24,7 @@ Example:
}
defer g.Close()
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)
}
err = g.MainLoop()