| 232 | |
| 233 | |
| 234 | class FocusHandler(object): |
| 235 | def OnGotFocus(self, browser, **_): |
| 236 | # Temporary fix for focus issues on Linux (Issue #284). |
| 237 | if LINUX: |
| 238 | print("[wxpython.py] FocusHandler.OnGotFocus:" |
| 239 | " keyboard focus fix (Issue #284)") |
| 240 | browser.SetFocus(True) |
| 241 | |
| 242 | |
| 243 | class CefApp(wx.App): |