File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ func (km KeyMap) FullHelp() [][]key.Binding {
64
64
65
65
// DefaultKeyMap returns a default set of keybindings.
66
66
func DefaultKeyMap () KeyMap {
67
- const spacebar = " "
68
67
return KeyMap {
69
68
LineUp : key .NewBinding (
70
69
key .WithKeys ("up" , "k" ),
@@ -79,7 +78,7 @@ func DefaultKeyMap() KeyMap {
79
78
key .WithHelp ("b/pgup" , "page up" ),
80
79
),
81
80
PageDown : key .NewBinding (
82
- key .WithKeys ("f" , "pgdown" , spacebar ),
81
+ key .WithKeys ("f" , "pgdown" , "space" ),
83
82
key .WithHelp ("f/pgdn" , "page down" ),
84
83
),
85
84
HalfPageUp : key .NewBinding (
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ package viewport
2
2
3
3
import "github.com/charmbracelet/bubbles/v2/key"
4
4
5
- const spacebar = " "
6
-
7
5
// KeyMap defines the keybindings for the viewport. Note that you don't
8
6
// necessary need to use keybindings at all; the viewport can be controlled
9
7
// programmatically with methods like Model.LineDown(1). See the GoDocs for
@@ -21,7 +19,7 @@ type KeyMap struct {
21
19
func DefaultKeyMap () KeyMap {
22
20
return KeyMap {
23
21
PageDown : key .NewBinding (
24
- key .WithKeys ("pgdown" , spacebar , "f" ),
22
+ key .WithKeys ("pgdown" , "space" , "f" ),
25
23
key .WithHelp ("f/pgdn" , "page down" ),
26
24
),
27
25
PageUp : key .NewBinding (
You can’t perform that action at this time.
0 commit comments