From cf0c29b79fe9d2feaa6ff48445ce43dff7b9b15b Mon Sep 17 00:00:00 2001 From: David Schlachter Date: Sun, 11 Jan 2026 13:41:43 -0500 Subject: Exit on Control-D as well as Control-C --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.go') diff --git a/ui.go b/ui.go index c41d6f2..bbffb5c 100644 --- a/ui.go +++ b/ui.go @@ -138,7 +138,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.vp.SetContent(formatDefinitionForDisplay(m.p, m.currentDefinition, m.vp.Width)) case tea.KeyMsg: switch msg.Type { - case tea.KeyCtrlC: + case tea.KeyCtrlC, tea.KeyCtrlD: return m, tea.Quit case tea.KeyEsc: m.currentWord = "" -- cgit v1.2.3