fix(tui): wire up [e] edit key in detail panel
The detail panel footer showed [e] Edit but handleDetailKey had no case for it. Route to handleEditItem() like the dashboard does.
This commit was merged in pull request #55.
This commit is contained in:
@@ -246,6 +246,8 @@ func (m *Model) handleDetailKey(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
|
||||
switch msg.String() {
|
||||
case "i", "esc":
|
||||
m.state = stateDashboard
|
||||
case "e":
|
||||
return m.handleEditItem()
|
||||
case "h":
|
||||
if m.cursor < len(m.sites) {
|
||||
site := m.sites[m.cursor]
|
||||
|
||||
Reference in New Issue
Block a user