diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-14 21:43:10 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-14 21:43:16 +0200 |
| commit | 8c3c69641cdcfc602992e6168602546f579dd3f9 (patch) | |
| tree | 882f303546d04b16d0903dcfac403f4568d768db /menu/model.go | |
| parent | ed0c8861ed071ff12f42fe6ebbe0925ed23171d9 (diff) | |
move input to separate file
Diffstat (limited to 'menu/model.go')
| -rw-r--r-- | menu/model.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/menu/model.go b/menu/model.go index 9d8fa82..6dc4e1c 100644 --- a/menu/model.go +++ b/menu/model.go @@ -33,25 +33,6 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, result } -func (m *Model) HandleInput(msg tea.KeyMsg) (tea.Cmd, error) { - var cmd tea.Cmd - switch msg.String() { - case "up", "k": - m.Index-- - case "down", "j": - m.Index++ - case "q", "esc": - m.Quit = true - cmd = tea.Quit - case "space", " ", "enter": - cmd = tea.Quit - } - - m.Validate() - - return cmd, nil -} - func (m *Model) HandleSignal(cmd tea.Cmd) (tea.Cmd, error) { return nil, nil } |
