Open GoogleCodeExporter opened 9 years ago
CEF's LoadUrl() method calls SetFocus. And if that happens before the TChromium
control is actually visible (IsWindowVisible), the events fire in the wrong
order.
This can be prevented by implementing the OnSetFocus event and skipping the
default "SetFocus" by setting Handled:=True
procedure TForm1.BrowserSetFocus(Sender: TObject; const browser: ICefBrowser;
source: TCefFocusSource; out Result: Boolean);
begin
if not Showing then
Result := True; // Handled, don't call "SetFocus" if the control isn't actually visible
end;
Original comment by Andreas....@gmail.com
on 22 Aug 2014 at 11:43
Original issue reported on code.google.com by
stefan.s...@hasomed.de
on 16 May 2014 at 11:29Attachments: