You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Update to CEF3.2924.1575
MiniBrowser : Addition of a preferences form, replacement of URLEdt by URLCbx, addition of a custom scheme TCEFApplication : Addition of 3 new properties : EnableSpellingService, EnableMediaStream, EnableSpeechInput TCEFChromium : Renamed internal procedures, addition of UppdatePreferences and SavePreferences procedures, more checks in doOnBeforeClose and doOnClose. TCefChromiumWindow : WebBrowser_OnClose returns False by default
This commit is contained in:
@@ -117,8 +117,13 @@ end;
|
||||
|
||||
procedure TChromiumWindow.WebBrowser_OnClose(Sender: TObject; const browser: ICefBrowser; out Result: Boolean);
|
||||
begin
|
||||
PostMessage(self.Handle, CEF_DOONCLOSE, 0, 0);
|
||||
Result := True;
|
||||
if assigned(FOnClose) then
|
||||
begin
|
||||
PostMessage(self.Handle, CEF_DOONCLOSE, 0, 0);
|
||||
Result := True;
|
||||
end
|
||||
else
|
||||
Result := False;
|
||||
end;
|
||||
|
||||
procedure TChromiumWindow.OnCloseMsg(var aMessage : TMessage);
|
||||
|
||||
Reference in New Issue
Block a user