1 new commit in controlUsageAssistant: https://bitbucket.org/nvdaaddonteam/controlusageassistant/commits/e67a6401bd95/ Changeset: e67a6401bd95 Branch: master User: josephsl Date: 2013-05-23 10:13:50 Summary: 2.0-dev: in Adobe Reader, correct help message for reading the document is presented. Affected #: 3 files diff --git a/addon/globalPlugins/controlUsageAssistant/__init__.py b/addon/globalPlugins/controlUsageAssistant/__init__.py index 527cffb..54883f7 100755 --- a/addon/globalPlugins/controlUsageAssistant/__init__.py +++ b/addon/globalPlugins/controlUsageAssistant/__init__.py @@ -45,8 +45,12 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin): # In case appModule is not found but we do have the current process name registered. return procOffsets[curProc] elif isinstance(curObj.treeInterceptor, VirtualBuffer): - # We're dealing with virtual buffer (virtual buffer is a tree interceptor). - return 200 + # We're dealing with virtual buffer (virtual buffer is a tree interceptor). However, watch out for Adobe Reader. + if curProc == "AcroRd32.exe": + return -400 + else: + # Not Adobe Reader. + return 200 else: # Found nothing, so return zero to fall back to default entries. return 0 diff --git a/addon/globalPlugins/controlUsageAssistant/apphelplist.py b/addon/globalPlugins/controlUsageAssistant/apphelplist.py index 5957632..b9659f9 100755 --- a/addon/globalPlugins/controlUsageAssistant/apphelplist.py +++ b/addon/globalPlugins/controlUsageAssistant/apphelplist.py @@ -12,6 +12,7 @@ appOffsets={ # Process offsets: come here when we fail to obtain appModules. procOffsets={ - "EXCEL.EXE":-300 + "EXCEL.EXE":-300, + "AcroRd32.exe":-400 #This is a special case - although Adobe reader uses virtual buffer, it is not a webpage, hence different message should be given for PDF's. } diff --git a/addon/globalPlugins/controlUsageAssistant/ctrltypelist.py b/addon/globalPlugins/controlUsageAssistant/ctrltypelist.py index 5751688..8a6e428 100755 --- a/addon/globalPlugins/controlUsageAssistant/ctrltypelist.py +++ b/addon/globalPlugins/controlUsageAssistant/ctrltypelist.py @@ -62,5 +62,9 @@ helpMessages = { # App-specific case 2: AppeModule for app is not present (use processes). # -300: Excel. - -329:_("Use the arrow keys to move between spreadsheet cells") + -329:_("Use the arrow keys to move between spreadsheet cells"), + + # -400: Adobe Reader (special case). + + -452:"Use the browse mode and quick navigation commands to read through the PDF document" } Repository URL: https://bitbucket.org/nvdaaddonteam/controlusageassistant/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. ---------------------------------------------------------------- NVDA add-ons Central: A list for discussing NVDA add-ons To post a message, send an email to nvda-addons@xxxxxxxxxxxxx. To unsubscribe, send an email with the subject line of "unsubscribe" (without quotes) to nvda-addons-request@xxxxxxxxxxxxx. If you have questions for list moderators, please send a message to nvda-addons-moderators@xxxxxxxxxxxxx. Community addons can be found here: http://addons.nvda-project.org