Delphi Chromium Embedded - Refresh page with F5 -
i using delphi chromium embedded in application, , have following question: how can emulate f5 key refresh page ?
in onkeyevent
use following 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) , (code = vk_f5) begin result := true; chromium1.browser.reload; end; end;
Comments
Post a Comment