Skip to content

Commit

Permalink
Add space keybind.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertClo committed Nov 18, 2024
1 parent 190185f commit d32364c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions keybind/keybind.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package keybind

import "github.com/charmbracelet/bubbles/key"
import (
"github.com/charmbracelet/bubbles/key"
)

type Shortcuts struct {
Up key.Binding
Expand All @@ -25,8 +27,8 @@ func New() Shortcuts {
key.WithHelp("enter", "select"),
),
StartStop: key.NewBinding(
key.WithKeys("s"),
key.WithHelp("s", "start/stop"),
key.WithKeys("s", " "),
key.WithHelp("s/space", "start/stop"),
),
Quit: key.NewBinding(
key.WithKeys("q", "esc", "ctrl+c"),
Expand Down

0 comments on commit d32364c

Please sign in to comment.