Commit fce5fb13 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Don't speak live region messages from inactive tabs

Note: This can be bypassed by adding the following lines to your

import orca.settings
orca.settings.presentLiveRegionFromInactiveTab = True
parent 4717f755
......@@ -4363,6 +4363,12 @@ class Utilities(script_utilities.Utilities):
if not self.isLiveRegion(event.source):
return False
if not _settingsManager.getSetting('presentLiveRegionFromInactiveTab') \
and self.getDocumentForObject(event.source) != self.activeDocument():
msg = "WEB: Live region source is not in active tab."
debug.println(debug.LEVEL_INFO, msg, True)
return False
if event.type.startswith("object:text-changed:insert"):
isAlert = lambda x: x and x.getRole() == pyatspi.ROLE_ALERT
alert = pyatspi.findAncestor(event.source, isAlert)
......@@ -401,3 +401,4 @@ structNavInSayAll = False
# N.B. The following are experimental and may change or go away at any time.
enableSadPidginHack = False
presentChatRoomLast = False
presentLiveRegionFromInactiveTab = False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment