2013-04-18 20 views

Antwort

4

In der OnKeyEvent verwenden Sie folgenden Code:

uses 
    CEFLib; 

procedure TForm1.Chromium1KeyEvent(Sender: TObject; 
    const browser: ICefBrowser; event: TCefHandlerKeyEventType; code, 
    modifiers: Integer; isSystemKey: Boolean; out Result: Boolean); 
begin 
    if (event = KEYEVENT_RAWKEYDOWN) and (code = VK_F5) then 
    begin 
    Result := True; 
    Chromium1.Browser.Reload; 
    end; 
end; 
0

@TLama vielleicht der richtige Code wie dies (in dcef3 mit delphi7):

if (event^.kind = KEYEVENT_RAWKEYDOWN) and (event^.windows_key_code = VK_F5) then