Skip to content

Commit

Permalink
Fix key binding documentation
Browse files Browse the repository at this point in the history
Fixes #105.
  • Loading branch information
muesli authored and meowgorithm committed Mar 31, 2022
1 parent 7fbab05 commit 450e0fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
}

Expand Down
4 changes: 2 additions & 2 deletions key/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
// ),
// }
//
Expand Down

0 comments on commit 450e0fc

Please sign in to comment.