Skip to content

Commit 34532f4

Browse files
author
{cocoide}
committed
suggest.goでメッセージ処理を実装する
1 parent 311e4a7 commit 34532f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/suggest.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
7777
if m.currentIdx > 0 {
7878
m.currentIdx--
7979
}
80+
case tea.KeyLeft:
81+
if m.currentIdx > 0 {
82+
m.currentIdx--
83+
}
8084
case tea.KeyDown:
8185
if m.currentIdx < len(m.choices)-1 {
8286
m.currentIdx++

0 commit comments

Comments
 (0)