Skip to content

Commit

Permalink
Some small comma fixes and default params are now correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard de Ruijter committed Oct 14, 2017
1 parent e862e36 commit 45d1332
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/NVDAObjects/__init__.py
Expand Up @@ -958,7 +958,7 @@ def event_foreground(self):
"""
speech.cancelSpeech()

def event_becomeNavigatorObject(self, isFocus=None):
def event_becomeNavigatorObject(self, isFocus=False):
"""Called when this object becomes the navigator object.
@param isFocus: true if the navigator object was set due to a focus change.
@type isFocus: bool
Expand Down
2 changes: 1 addition & 1 deletion source/NVDAObjects/window/winConsole.py
Expand Up @@ -19,7 +19,7 @@ def _get_TextInfo(self):
return winConsoleHandler.WinConsoleTextInfo
return super(WinConsole,self).TextInfo

def event_becomeNavigatorObject(self, isFocus=None):
def event_becomeNavigatorObject(self, isFocus=False):
if winConsoleHandler.consoleObject is not self:
if winConsoleHandler.consoleObject:
winConsoleHandler.disconnectConsole()
Expand Down
2 changes: 1 addition & 1 deletion source/api.py
Expand Up @@ -232,7 +232,7 @@ def setNavigatorObject(obj,isFocus=False):
if isFocus:
globalVars.reviewPosition=obj.treeInterceptor.makeTextInfo(textInfos.POSITION_CARET)
globalVars.reviewPositionObj=globalVars.reviewPosition
eventHandler.executeEvent("becomeNavigatorObject",obj, isFocus=isFocus)
eventHandler.executeEvent("becomeNavigatorObject",obj,isFocus=isFocus)

def isTypingProtected():
"""Checks to see if key echo should be suppressed because the focus is currently on an object that has its protected state set.
Expand Down

0 comments on commit 45d1332

Please sign in to comment.