I need to open link in new Tab, if its where pressed with middle mouse button, but exactly there is no Events in TChromium, like OnMouseDown or else. There is only OnPreKeyEvent and OnKeyEvent, but exactly its not what i need. I allmost tryed to catch this click with this Events, like this:
procedure TForm1.ChromiumPreKeyEvent(Sender: TObject;
const browser: ICefBrowser; const event: PCefKeyEvent; osEvent: PMsg;
out isKeyboardShortcut, Result: Boolean);
begin
If(event.windows_key_code=13) Then
ShowMessage('ENTER PRESSED PRE KEY EVENT : '+inttostr(event.windows_key_code))
end;
But its exactly not working with mouse buttons. Can somebody help me with this ? Thanks.