Commit 8c30da42 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Remove an obsolete hack that is preventing presentation of text selection

parent e5019592
......@@ -5355,10 +5355,6 @@ class Utilities:
self.updateCachedTextSelection(obj)
newStart, newEnd, newString = self.getCachedTextSelection(obj)
# TODO - JD: This may be (now or soon) obsolete.
if self._script.pointOfReference.get('lastAutoComplete') == hash(obj):
return False
if self._speakTextSelectionState(len(newString)):
return True
......
......@@ -173,8 +173,6 @@ class Script(Gecko.Script):
return
self._lastAutoComplete = ""
self.pointOfReference['lastAutoComplete'] = None
obj = event.source
if self.spellcheck.isAutoFocusEvent(event):
orca.setLocusOfFocus(event, event.source, False)
......@@ -321,7 +319,6 @@ class Script(Gecko.Script):
if hasSelection or isSystemEvent:
speech.speak(event.any_data)
self._lastAutoComplete = event.any_data
self.pointOfReference['lastAutoComplete'] = hash(obj)
return
super().onTextInserted(event)
......
......@@ -2708,8 +2708,6 @@ class Script(script.Script):
elif self.utilities.isSelectedTextInsertionEvent(event):
msg = "DEFAULT: Insertion is also selected"
debug.println(debug.LEVEL_INFO, msg, True)
# TODO - JD: This may be (now or soon) obsolete.
self.pointOfReference['lastAutoComplete'] = hash(event.source)
else:
msg = "DEFAULT: Not speaking inserted string due to lack of cause"
debug.println(debug.LEVEL_INFO, msg, True)
......
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