Focus problem with mozembed

Zoltan Boszormenyi <[email protected]> Fri, 2 Nov 2012 07:29:15 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.embedding
Message-ID <[email protected]>
Hi,

by running the gtk/tests/test.cpp code, I have noticed that the embedded Ge=
cko engine cannot get the focus. The GtkEntry for the URL and the GtkNotebo=
ok page headers are highlighted when tabbing through them but the notebook =
"leaf", the page content cannot. E.g. the entry for the Google search box d=
oesn't get keyboard events, although all other events seem to get through. =
E.g. clicking on the keyboard icon in the right side of the search entry bo=
x shows the on-screen keyboard and it accepts clicks which make the letters=
 appear in the search box. So, everything seems to work except the keyboard=
 focus.

I am using 64-bit Fedora 17, xulrunner-16.0.2 and mozembed tip (29ac0fe5175=
4) with the previously posted patch.

I also noticed that gtk/x11/moz-web-view.cpp and gtk/win32/moz-web-view.cpp=
 are very different. Why? The keyboard focus problem may be solved by unify=
ing them, no? Can someone help me?

Thanks in advance,
Zolt=E1n B=F6sz=F6rm=E9nyi