[orca] Report selected cells when selected-text command is used in Calc tables
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Report selected cells when selected-text command is used in Calc tables
- Date: Fri, 13 Jul 2018 16:43:47 +0000 (UTC)
commit cf6b9a8cc59134c1f2499745e529e7ea57516a3b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jul 13 12:42:27 2018 -0400
Report selected cells when selected-text command is used in Calc tables
src/orca/scripts/apps/soffice/script.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 867b0446f..61a7e444e 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -165,6 +165,11 @@ class Script(default.Script):
cmdnames.PAN_BRAILLE_RIGHT,
False) # Do not enable learn mode for this action
+ self.inputEventHandlers["whereAmISelectedTextHandler"] = \
+ input_event.InputEventHandler(
+ Script.whereAmISelectedText,
+ cmdnames.WHERE_AM_I_SELECTED_TEXT)
+
def getAppKeyBindings(self):
"""Returns the application-specific keybindings for this script."""
@@ -919,3 +924,10 @@ class Script(default.Script):
super().onWindowDeactivated(event)
self.spellcheck.deactivate()
+
+ def whereAmISelectedText(self, inputEvent=None, obj=None):
+ obj = obj or orca_state.locusOfFocus
+ if not self.utilities.isSpreadSheetCell(obj):
+ return super().whereAmISelectedText(inputEvent, obj)
+
+ return self.utilities.speakSelectedCellRange(self.utilities.getTable(obj))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]