Skip to content

Commit

Permalink
fix: pager doesn't respond to arrow keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dhth committed Jul 26, 2024
1 parent d83dd43 commit e6c1ab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ui/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.activeView = taskEntryView
return m, tea.Batch(cmds...)

case "j":
case "down", "j":
if m.activeView != taskDetailsView && m.activeView != helpView {
break
}
Expand All @@ -427,7 +427,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.helpVP.LineDown(viewPortMoveLineCount)
}

case "k":
case "up", "k":
if m.activeView != taskDetailsView && m.activeView != helpView {
break
}
Expand Down

0 comments on commit e6c1ab0

Please sign in to comment.