Commit d53ad4c0 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Web: Fix presentation of table row when caret moves due to mouse click

Don't read the full row if the last input event was a mouse button
event. We always generate the full line (i.e. each cell in the row)
when the caret moves due to a mouse click. If we think we should
read the full row for each cell in that row, we'll be extremely
chatty and also fail to present the column headers.
parent 6c870fde
......@@ -5316,6 +5316,9 @@ class Utilities:
return not mods or mods & keybindings.SHIFT_MODIFIER_MASK
def lastInputEventWasMouseButton(self):
return isinstance(orca_state.lastInputEvent, input_event.MouseButtonEvent)
def lastInputEventWasPrimaryMouseClick(self):
event = orca_state.lastInputEvent
if isinstance(event, input_event.MouseButtonEvent):
......
......@@ -2848,6 +2848,9 @@ class Utilities(script_utilities.Utilities):
if self.lastInputEventWasLineNav():
return False
if self.lastInputEventWasMouseButton():
return False
return True
def isEntryDescendant(self, obj):
......
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