Skip to content

Commit

Permalink
Make NVDA sleep while a secure desktop is active. Among other things,…
Browse files Browse the repository at this point in the history
… this prevents scripts from executing, which is a security risk; e.g. commands bound to a braille display.

Fixes #2449.
  • Loading branch information
jcsteh committed Aug 1, 2012
1 parent 3a84128 commit 32ec953
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/IAccessibleHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,11 @@ def _get_name(self):
def _get_role(self):
return controlTypes.ROLE_PANE

def event_gainFocus(self):
super(SecureDesktopNVDAObject, self).event_gainFocus()
# After handling the focus, NVDA should sleep while the secure desktop is active.
self.sleepMode = True

def processDesktopSwitchWinEvent(window,objectID,childID):
hDesk=windll.user32.OpenInputDesktop(0, False, 0)
if hDesk!=0:
Expand Down
1 change: 1 addition & 0 deletions user_docs/en/changes.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
- When installing an add-on, the confirmation dialog now correctly shows the localised name of the add-on if available. (#2422)
- In applications using UI Automation (such as .net and Silverlight applications), the calculation of numeric values for controls such as sliders has been corrected. (#2417)
- The configuration for reporting of progress bars is now honoured for the indeterminate progress bars displayed by NVDA when installing, creating a portable copy, etc. (#2574)
- NVDA commands can no longer be executed from a braille display while a secure Windows screen (such as the Lock screen) is active. (#2449)


== Changes for Developers ==
Expand Down

0 comments on commit 32ec953

Please sign in to comment.