Sometimes when switching from steam to a different workspace and back only the outer window takes focus so some actions don't work. Tentative fix for that.
This commit is contained in:
1 parent
9205e7280a
commit
12c514aab0
19 files changed
+798
-30
No files matched your search
@@ -123,3 +123,9 @@ func (modifiers ModifierKeycodes) Contains(keycode uint8) bool {
|
||||
func ShouldInterruptSpeech(event Event) bool {
|
||||
return event.Pressed
|
||||
}
|
||||
|
||||
// Automatic titles survive held-key repeats, but fresh input and explicit
|
||||
// stop keys cancel both scheduled and already queued title speech.
|
||||
func ShouldInterruptTitle(event Event) bool {
|
||||
return event.Pressed && (!event.Repeat || event.Name == "Control_L" || event.Name == "Control_R" || event.Name == "Escape")
|
||||
}
|
||||
Reference in new issue
Block a user