simplify keybinds

This commit is contained in:
2026-01-04 05:07:11 +00:00
parent c960397adc
commit 34fde8ac27
3 changed files with 82 additions and 25 deletions
+6
View File
@@ -202,6 +202,12 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, cmd
}
// If editing, forward all keys to noteView and ignore global bindings
if m.noteView.IsEditing() {
_, cmd := m.noteView.Update(msg)
return m, cmd
}
switch msg.String() {
case "q", "ctrl+c":
return m, tea.Quit