From 200f95759b3ac24f5dd35dd43c22733f1375ddc4 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 24 Jan 2022 14:57:10 +0100 Subject: [PATCH] Fix key binding documentation Fixes #105. --- README.md | 4 ++-- key/key.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 66ed308..46f751f 100644 --- a/README.md +++ b/README.md @@ -149,8 +149,8 @@ var DefaultKeyMap = KeyMap{ key.WithHelp("↑/k", "move up"), // corresponding help text ), Down: key.NewBinding( - WithKeys("j", "down"), - WithHelp("↓/j", "move down"), + key.WithKeys("j", "down"), + key.WithHelp("↓/j", "move down"), ), } diff --git a/key/key.go b/key/key.go index 743c569..c35f7f0 100644 --- a/key/key.go +++ b/key/key.go @@ -13,8 +13,8 @@ // key.WithHelp("↑/k", "move up"), // corresponding help text // ), // Down: key.NewBinding( -// WithKeys("j", "down"), -// WithHelp("↓/j", "move down"), +// key.WithKeys("j", "down"), +// key.WithHelp("↓/j", "move down"), // ), // } //