diff options
| author | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-11 13:41:43 -0500 |
|---|---|---|
| committer | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-11 13:41:43 -0500 |
| commit | cf0c29b79fe9d2feaa6ff48445ce43dff7b9b15b (patch) | |
| tree | eac9edf378b720b7c7a77e327c6dd1a33ef9ee24 /ui.go | |
| parent | 32acf8c4940b5e7088b0651d5e7ea480afee9e7b (diff) | |
Exit on Control-D as well as Control-C
Diffstat (limited to 'ui.go')
| -rw-r--r-- | ui.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 = "" |
