I created a simple application in Delphi-XE5 for Android. It only has an TWebBrowser
object that goes straight to a certain website when the application runs. But when I focus/touch on any of the webform's inputs nothing happens. The cursor goes to the input but the virtual keyboard does not show up.
Do I have to put some code on an Event
or... is it some Delphi's bug?
Yes it is a bug in Delphi TWebBrowser. Or they want us to believe that it is as designed so you only use web browser for viewing web pages with no interaction. However there is a workaround for it
procedure TFormBrowserAdd.ButtonNavigateClick(Sender: TObject);
begin
WebBrowser.CanFocus := True;
WebBrowser.Navigate(EditUrl.Text);
WebBrowser.SetFocus;
end;
You can read the whole article here. Also check this Stackoverflow entry. There is also a QC report that is marked resolved which might indicate that the fix will be shipped in XE6 or later.