Allow keyboard interruption of i3 speech during terminal handoff

This commit is contained in:
ak47 committed 2026-11-07 15:16:26 -05:00
1 parent a29910d002
commit e7d02b1f62
9 files changed
+205 -8

No files matched your search

+7
View File
@@ -64,6 +64,13 @@ func (queue outputQueue) InterruptForInput(event input.Event) bool {
return true
}
func (queue outputQueue) InterruptForHandoffInput(event input.Event) bool {
if speech, ok := queue.speech.(interface{ InterruptForHandoffInput(input.Event) bool }); ok {
return speech.InterruptForHandoffInput(event)
}
return false
}
type discardSpeech struct{}
func (discardSpeech) Enqueue(speechRequest) {}