Skip to content

Commit

Permalink
remove modifier requirement for fallback command
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Nov 3, 2023
1 parent 29e8fd7 commit 3adae95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/tui/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (c *RootList) Reload() tea.Msg {
c.environ = environ
c.extensions = extensionMap
c.history.Sort(rootItems)
c.list.SetEmptyText("No results found, hit alt+enter to run as shell command")
c.list.SetEmptyText("No results found, hit enter to run as shell command")
c.list.SetIsLoading(false)
c.list.SetItems(rootItems...)
return nil
Expand Down Expand Up @@ -101,8 +101,8 @@ func (c *RootList) Update(msg tea.Msg) (Page, tea.Cmd) {
switch msg := msg.(type) {
case tea.KeyMsg:
switch msg.String() {
case "alt+enter":
if _, ok := c.list.Selection(); ok {
case "enter", "alt+enter":
if _, ok := c.list.Selection(); ok && msg.String() == "enter" {
break
}

Expand Down

0 comments on commit 3adae95

Please sign in to comment.