Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTolstoyevski committed Apr 22, 2020
1 parent 20c42cb commit 0c62cd0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ I searched and couldn't find it.
Feel free to create a PR for the problem.
A very simple problem for experienced NVDA developers 🤗.

Fixed ❤
```
WARNING - eventHandler._EventExecuter.next (21:56:30.419) - MainThread (2404):
Could not execute function event_becomeNavigatorObject defined in globalPlugins.Unspoken module; kwargs: {'isFocus': True}
Expand Down
6 changes: 5 additions & 1 deletion addonSource/globalPlugins/Unspoken/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ def play_object(self, obj):
sounds[role].set_position(position_x, position_y, AUDIO_DEPTH * -1)
sounds[role].play()

def event_becomeNavigatorObject(self, obj, nextHandler):
def event_gainFocus(self, obj, nextHandler):
self.play_object(obj)
nextHandler()

def event_becomeNavigatorObject(self, obj, nextHandler, isFocus=False):
self.play_object(obj)
nextHandler()

Expand Down
2 changes: 1 addition & 1 deletion addonSource/globalPlugins/Unspoken_docHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ def onHelp(self, evt):

def terminate(self):
try:
self.help.RemoveItem(self.helpItem)
self.help.Remove(self.helpItem)
except wx.PyDeadObjectError:
pass

0 comments on commit 0c62cd0

Please sign in to comment.