From 6f6e04ab0d561da35986932376b9f92df6eac3ba Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Tue, 22 Sep 2015 11:55:42 -0700 Subject: [PATCH] In browse mode and editable text fields, NVDA now treats numpadEnter the same as the main enter key. Fixes #5385. --- source/NVDAObjects/behaviors.py | 1 + source/browseMode.py | 1 + user_docs/en/changes.t2t | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/source/NVDAObjects/behaviors.py b/source/NVDAObjects/behaviors.py index 751a0a2d418..9682f378be2 100755 --- a/source/NVDAObjects/behaviors.py +++ b/source/NVDAObjects/behaviors.py @@ -154,6 +154,7 @@ def initOverlayClass(self): # As Pressing enter on an edit field can cause modal dialogs to appear, yet gesture.send and api.processPendingEvents may call.wx.yield which ends in a freeze. if self.announceNewLineText and self.processID!=os.getpid(): self.bindGesture("kb:enter","caret_newLine") + self.bindGesture("kb:numpadEnter","caret_newLine") class EditableTextWithAutoSelectDetection(EditableText): """In addition to L{EditableText}, handles reporting of selection changes for objects which notify of them. diff --git a/source/browseMode.py b/source/browseMode.py index 412d22b2da0..3211001f9c1 100644 --- a/source/browseMode.py +++ b/source/browseMode.py @@ -308,6 +308,7 @@ def script_activatePosition(self,gesture): __gestures={ "kb:NVDA+f7": "elementsList", "kb:enter": "activatePosition", + "kb:numpadEnter": "activatePosition", "kb:space": "activatePosition", "kb:NVDA+shift+space":"toggleSingleLetterNav", } diff --git a/user_docs/en/changes.t2t b/user_docs/en/changes.t2t index cc0c40b33e5..de5c2ebf47f 100644 --- a/user_docs/en/changes.t2t +++ b/user_docs/en/changes.t2t @@ -13,6 +13,10 @@ - New braille translation table: Koine Greek. (#5393) +== Changes == +- In browse mode and editable text fields, NVDA now treats numpadEnter the same as the main enter key. (#5385) + + == Bug Fixes == - In browse mode, when attempting to use single letter navigation to move to an element which isn't supported for the document, NVDA reports that this isn't supported rather than reporting that there is no element in that direction. (#5691) - When listing sheets in the Elements List in Microsoft Excel, sheets containing only charts are now included. (#5698)