The enter key doesn't work as expected when a HTML form is displayed inside a
TWebBrowser on a form.
The enter key simply do nothing !
When the same page is used thru IE, then enter key action is equal to clicking
on the submit button
within the HTML form.
How to have the enter key work with TWebBrowser ?
Step to reproduce the problem:
Create a new empty project
Drop a TWebBrowser on the form
Drop a TButton and assign the code below to the OnClick:
WebBrowser1.Navigate('http://www.somewebsite.com/some_html_form.html');
The URL specified should display a HTML form with a few text field and a submit
button.
Run the program, enter data into the first text field and hit enter key.
Nothing happend.
Click on the submit button and the form is submitted.
Now launch IE. Enter the same URL and go to that page. Enter data into the
first text field and hit
enter: the form is properly submited by action of the enter key.
Any idea ?
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi