From 1723dfcd0355d9bf085601f10472e61d93e5093f Mon Sep 17 00:00:00 2001 From: James Teh Date: Fri, 12 Oct 2012 13:30:37 +1000 Subject: [PATCH] Windows 8 Toast notifications: * Don't move the navigator object. Keyboard users can press Windows+v to focus them. Touch users can touch the top right of the screen. * Only report when reporting of help balloons is enabled. * Report in braille as well as speech. Fixes #2143. --- source/NVDAObjects/UIA/__init__.py | 8 ++++++-- user_docs/en/changes.t2t | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/source/NVDAObjects/UIA/__init__.py b/source/NVDAObjects/UIA/__init__.py index 14afd4137..decb45438 100644 --- a/source/NVDAObjects/UIA/__init__.py +++ b/source/NVDAObjects/UIA/__init__.py @@ -19,6 +19,7 @@ from logHandler import log from NVDAObjects.window import Window from NVDAObjects import NVDAObjectTextInfo, InvalidNVDAObject from NVDAObjects.behaviors import ProgressBar, EditableTextWithoutAutoSelectDetection, Dialog +import braille class UIATextInfo(textInfos.TextInfo): @@ -739,8 +740,11 @@ class Dialog(Dialog): class Toast(UIA): def event_alert(self): - speech.speakObject(self) - api.setNavigatorObject(self) + if not config.conf["presentation"]["reportHelpBalloons"]: + return + speech.speakObject(self,reason=controlTypes.REASON_FOCUS) + # TODO: Don't use getBrailleTextForProperties directly. + braille.handler.message(braille.getBrailleTextForProperties(name=self.name, role=self.role)) class GridTileElement(UIA): diff --git a/user_docs/en/changes.t2t b/user_docs/en/changes.t2t index 8c5785d04..3c34058dd 100644 --- a/user_docs/en/changes.t2t +++ b/user_docs/en/changes.t2t @@ -15,7 +15,7 @@ Highlights of this release include support for Asian character input; experiment - When the Windows Sticky Keys function is enabled, the NVDA modifier key will now behave like other modifier keys. This allows you to use the NVDA modifier key without needing to hold it down while you press other keys. (#230) - Automatic reporting of column and row headers is now supported in Microsoft Excel. Press NVDA+shift+c to set the row containing column headers and NVDA+shift+r to set the column containing row headers. Press either command twice in quick succession to clear the setting. (#1519) - Support for HIMS Braille Sense, Braille EDGE and SyncBraille braille displays. (#1266, #1267) -- When Windows 8 Toast notifications appear, NVDA will announce them and move the navigator object there for further interaction. (#2143) +- When Windows 8 Toast notifications appear, NVDA will report them if reporting of help balloons is enabled. (#2143) - Experimental support for Touch screens on Windows 8, including: - Reading text directly under your finger while moving it around - Many gestures for performing object navigation, text review, and other NVDA commands. -- 2.11.0