Skip to content

Commit

Permalink
Merge branch 'i5343' into next
Browse files Browse the repository at this point in the history
michaelDCurran committed Nov 26, 2015

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
2 parents b8ac268 + 986d8f7 commit c92dce5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions source/NVDAObjects/window/winConsole.py
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
from . import Window
from ..behaviors import Terminal, EditableTextWithoutAutoSelectDetection
import api
import core

class WinConsole(Terminal, EditableTextWithoutAutoSelectDetection, Window):
STABILIZE_DELAY = 0.03
@@ -53,3 +54,18 @@ def script_caret_backspaceCharacter(self, gesture):
# so the typedCharacter event is never fired for the backspace key.
# Call it here so that speak typed words works as expected.
self.event_typedCharacter(u"\b")

def script_close(self,gesture):
# #5343: New consoles in Windows 10 close with alt+f4 and take any processes attached with it (including NVDA).
# Therefore detach from the console temporarily while sending the gesture.
winConsoleHandler.disconnectConsole()
gesture.send()
def reconnect():
if api.getFocusObject()==self:
winConsoleHandler.connectConsole(self)
self.startMonitoring()
core.callLater(200,reconnect)

__gestures={
"kb:alt+f4":"close",
}

0 comments on commit c92dce5

Please sign in to comment.