I recently discovered this so I thought I would share. In my app, I am using a CefParentWindow that is sometimes hidden (Visible = False). When I set visible to True, of course, the CefParentWindow does not have focus. Clicking on the CefParentWindow, of course, gives it focus. What I discovered is that using touch does not give the CefParentWindow focus. So in my case, on a touch capable device, after making the CefParentWindow visible, if the user used touch to select a field in the browser and started typing, all the keyboard input went elsewhere, not the browser, so the user could not enter data until he used the actual mouse to click on the browser.
In my case I could solve my problem by:
Code: Select all
CEFWindowParent1.Visible := True;
TThread.ForceQueue(nil, procedure
begin
CEFWindowParent1.SetFocus;
end);
My question is, should the CefParentWindow get focus when "touched" on a touch capable device?
R Greg Dawson