kryskool / cefpython

Automatically exported from code.google.com/p/cefpython
0 stars 1 forks source link

Popup windows have no keyboard / mouse focus #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Create popup window using window.open(), try scolling using mouse wheel - it 
doesn't work, you need to click in that window, only after that scrolling works.

To fix that it is required to implement CefLifeSpanHandler > OnAfterCreated() 
which is called after new window is created, call Browser.SetFocus() in that 
handler or do it the same as in cefpython.wm_SetFocus proc:

cdef HWND innerHwnd = (<CefBrowser*>(cefBrowser.get())).GetWindowHandle()
PostMessage(innerHwnd, WM_SETFOCUS, 0, 0)

Original issue reported on code.google.com by czarek.t...@gmail.com on 14 Sep 2012 at 5:30

GoogleCodeExporter commented 9 years ago
Fixed in revision a79921d0b6a7.

Original comment by czarek.t...@gmail.com on 23 Nov 2012 at 5:15

GoogleCodeExporter commented 9 years ago
Is this issue really fixed? I can't make cef input any data from keybord in 
popup in Wiindows... I'm using wx widgets. Just running wxpython.py and opening 
the wxpython.html in popup window reproduces the problem.

Original comment by sskhr...@gmail.com on 21 May 2014 at 7:16

GoogleCodeExporter commented 9 years ago
Please ask questions and report problems on the CEF Python Forum.

Original comment by czarek.t...@gmail.com on 21 May 2014 at 7:26