diff --git a/README.md b/README.md index 9eb0021..c225dd9 100644 --- a/README.md +++ b/README.md @@ -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} diff --git a/addonSource/globalPlugins/Unspoken/__init__.py b/addonSource/globalPlugins/Unspoken/__init__.py index c3aaafd..7ea65a1 100644 --- a/addonSource/globalPlugins/Unspoken/__init__.py +++ b/addonSource/globalPlugins/Unspoken/__init__.py @@ -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() diff --git a/addonSource/globalPlugins/Unspoken_docHandler.py b/addonSource/globalPlugins/Unspoken_docHandler.py index c142e42..9fd3af2 100644 --- a/addonSource/globalPlugins/Unspoken_docHandler.py +++ b/addonSource/globalPlugins/Unspoken_docHandler.py @@ -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