summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 21:35:09 +0300
committerGitHub <noreply@github.com>2025-06-20 21:35:09 +0300
commit62842fe088e54f3a034c9ee4166ac684b6bb38a7 (patch)
tree09c5684d2027572db2742e505c95b4b23daf8716
parent36f34fcb681bc9b1d396eaf333765892bf823f09 (diff)
parent51667451ec2a36b2feebe0e68f3c10c8ca20d611 (diff)
Merge pull request #48 from snonux/codex/fix-fireworks-display-on-q-key-press
Fix fireworks not appearing on quit
-rw-r--r--internal/ui/fireworks.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/ui/fireworks.go b/internal/ui/fireworks.go
index 8442541..b95920b 100644
--- a/internal/ui/fireworks.go
+++ b/internal/ui/fireworks.go
@@ -29,6 +29,9 @@ func tick() tea.Cmd {
func (m fwModel) Init() tea.Cmd {
m.start = time.Now()
+ // Ignore the first key in case the exit key from the previous program
+ // is still buffered when the fireworks start.
+ m.ignoreFirstKey = true
return tick()
}