Skip to content

Commit a314559

Browse files
committed
Fix focus issues in qt.py example (cztomczak#404).
1 parent 99fb58a commit a314559

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/qt.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,11 @@ def __init__(self, cef_widget):
337337
self.cef_widget = cef_widget
338338

339339
def OnSetFocus(self, **_):
340-
pass
340+
print("[qt.py] FocusHandler.OnSetFocus")
341+
if LINUX:
342+
return False
343+
else:
344+
return True
341345

342346
def OnGotFocus(self, browser, **_):
343347
# Temporary fix no. 1 for focus issues on Linux (Issue #284)

0 commit comments

Comments
 (0)