Skip to content

Commit 93adf55

Browse files
committed
Fix default filter keymap
1 parent 5f1e0d6 commit 93adf55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/ui/app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"os"
66
"strings"
77

8+
"github.com/charmbracelet/bubbles/key"
89
"github.com/charmbracelet/bubbles/list"
910
tea "github.com/charmbracelet/bubbletea"
1011
"github.com/charmbracelet/lipgloss"
@@ -122,6 +123,7 @@ func newList(items []list.Item, delegate list.ItemDelegate, defaultFilterType ma
122123
case exactMatchFilterType:
123124
l.Filter = exactMatchFilter
124125
}
126+
l.KeyMap.AcceptWhileFiltering = key.NewBinding(key.WithKeys("enter"))
125127
return l
126128
}
127129

0 commit comments

Comments
 (0)