diff --git a/README.md b/README.md index f278fa9..f702811 100644 --- a/README.md +++ b/README.md @@ -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() diff --git a/doc.go b/doc.go index bdc357a..54a11e9 100644 --- a/doc.go +++ b/doc.go @@ -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()