Skip to content

Commit adfa594

Browse files
committed
Compare special key against built-in type
1 parent a327a3d commit adfa594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tui.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
5252
switch msg := msg.(type) {
5353
case tea.KeyMsg:
5454
switch msg.String() {
55-
case "enter":
55+
case tea.KeyEnter.String():
5656
return m, openEditor(m.list.SelectedItem().(repo).path)
5757
case "u":
5858
return m, tea.Sequence(m.list.SetItems([]list.Item{}), m.Init())

0 commit comments

Comments
 (0)