[orca/gnome-3-38] Web: Fix presentation of table row when caret moves due to mouse click
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-38] Web: Fix presentation of table row when caret moves due to mouse click
- Date: Thu, 7 Jan 2021 14:18:20 +0000 (UTC)
commit 996cff75f2624baa02e67450dc41273781b15ea4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Jan 7 15:09:51 2021 +0100
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.
src/orca/script_utilities.py | 3 +++
src/orca/scripts/web/script_utilities.py | 3 +++
2 files changed, 6 insertions(+)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 5e6dbe15a..d8647b1d4 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -5200,6 +5200,9 @@ class Utilities:
return mods & keybindings.CTRL_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):
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 87875d6cc..636191a19 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2829,6 +2829,9 @@ class Utilities(script_utilities.Utilities):
if self.lastInputEventWasLineNav():
return False
+ if self.lastInputEventWasMouseButton():
+ return False
+
return True
def isEntryDescendant(self, obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]