Allow keyboard interruption of i3 speech during terminal handoff
This commit is contained in:
1 parent
a29910d002
commit
e7d02b1f62
9 files changed
+205
-8
No files matched your search
@@ -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) {}
|
||||
|
||||
Reference in new issue
Block a user