I have a problem where trying to get auto URL detection working - the Enter Key is not being detected, this also happens with the Hypertext\URLS Demo
Only - Space, Tab, semicolon and comma is working but not the Enter Key...
I am using Delphi 2007 on Windows Vista Ultimate x64
Would you be able to look into this and see if there is a problem?
I use the code from the Demo:
Code: Select all
procedure TMain.rveKeyPress(Sender: TObject; var Key: Char);
begin
if Key in [' ', #13, #9, ';', ','] then begin
// url detection
DetectURL(rve, URLScanEvent, True);
// closing url if necessary
TerminateHyperlink(rve, URLScanEvent, Key in [' ', #13, #9, ';', ',']);
end;
end;
jnap