Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/FireMonkey/Components    [ Add a report in this area ]  
Report #:  104652   Status: Closed
[iOS] Readonly TEdt shows keyboard
Project:  Delphi Build #:  16.0.4429.46931
Version:    16.4 Submitted By:   Michiel van Ingen
Report Type:  Basic functionality failure Date Reported:  4/5/2012 2:39:15 AM
Severity:    Serious / Highly visible problem Last Updated: 4/23/2013 8:14:13 AM
Platform:    Apple mobile OS Internal Tracking #:   27119
Resolution: Fixed (Resolution Comments) Resolved in Build: : XE4
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
[iOS]
When a TEdit is readonly, the keyboard is still displayed when TEdit is touched. Hittest cannot be false because events are still needed.


Added by Sysop
<<<<<<<
This issue is similar to QC#104271(RS-26665).
>>>>>>>
Steps to Reproduce:
Create Firemonkey iOS app, put TEdit on form, set readonly to true, run app. Touch TEdit, keyboard is displayed
Workarounds
Edit FMX_Edit.pas:

procedure TCustomEdit.DoEnter;
begin
  inherited;
  FNeedChange := False;

  if not FReadOnly then
  begin
    if FShowCaret then
      ShowCaretProc;

    if Platform.ShowVirtualKeyboard(Self) then
      CaretPosition := Length(Text)
    else
      SelectAll;
  end;
end;
Attachment
None
Comments

Tomohiro Takahashi at 4/5/2012 8:02:48 PM -
This issue is similar to QC#104271.

Tomohiro Takahashi at 4/9/2012 6:19:53 AM -
This report was opened with valid Internal Tracking Number.
Thanks.

Server Response from: ETNACODE01