mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
handle an OSError exception
This commit is contained in:
@@ -151,10 +151,12 @@ class ActiveXCtrl(wx.msw.PyAxBaseWindow):
|
||||
# accelerators can be dealt with the way that the AXControl
|
||||
# wants them to be done. MSWTranslateMessage is called before
|
||||
# wxWidgets handles and eats the navigation keys itself.
|
||||
try:
|
||||
res = self.ipao.TranslateAccelerator(msg)
|
||||
if res == hr.S_OK:
|
||||
return True
|
||||
else:
|
||||
except OSError:
|
||||
pass
|
||||
return super(ActiveXCtrl, self).MSWTranslateMessage(msg)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user