From b9ce982fe58c977ceefd1a68bd855c2f078b997a Mon Sep 17 00:00:00 2001 From: Roi Martin Date: Sat, 24 Jan 2015 14:26:26 +0100 Subject: [PATCH] Update README and doc --- README.md | 2 +- doc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()