本文介绍了在输入TEdit时,它会将其内部的文本加倍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正在使用Embarcadero®RAD Studio 10 Seattle版本23.0.20618.2753。我刚刚开始制作移动应用。我在一个 TForm 上放置了两个 TEdit 控件。它们是I am using Embarcadero® RAD Studio 10 Seattle Version 23.0.20618.2753. I just started making a Mobile App. I placed two TEdit controls on one TForm. They areEdit_FirstName: TEdit;Edit_LastName: TEdit;现在,当我在移动设备上运行此应用并填写我的名字时,假设我写了字段 Edit_FirstName 中的Michael 和 Schumacher > Edit_LastName 。到目前为止,一切正常。Now, when I am running this app on a mobile device and filling in my name, suppose I wrote Michael in the field Edit_FirstName and Schumacher in the field Edit_LastName. Up to this point, everything is OK.但是现在,当我移回字段 Edit_FirstName 并添加 @ 在 Michael 之后,应该是 Michael @ ,但实际上是成为 MichaelMichael @ 。 TEdit 本身会将已经写在其中的文本加倍,然后在其后添加新字符。But now, when I move back to the field Edit_FirstName and going to add @ after Michael, it should be Michael@ but instead it is becoming MichaelMichael@. The TEdit itself doubles the text which is already written inside of it, and then adds new characters after that.这是一个品牌新的Form项目。我没有在该项目中编写任何代码。It is a brand new Form project. I have not written a single line of code in this project.代码是:unit Unit1;interfaceuses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Controls.Presentation, FMX.Edit;type TForm1 = class(TForm) Edit_FirstName: TEdit; Edit_LastName: TEdit; private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.fmx}end. fmx文件为:object Form1: TForm1 Left = 0 Top = 0 Caption = 'Form1' ClientHeight = 414 ClientWidth = 247 FormFactor.Width = 320 FormFactor.Height = 480 FormFactor.Devices = [Desktop] DesignerMasterStyle = 0 object EDIT_FirstName: TEdit Touch.InteractiveGestures = [LongTap, DoubleTap] TabOrder = 2 Position.X = 72.000000000000000000 Position.Y = 56.000000000000000000 end object EDIT_LastName: TEdit Touch.InteractiveGestures = [LongTap, DoubleTap] TabOrder = 1 Position.X = 72.000000000000000000 Position.Y = 88.000000000000000000 endend我该如何解决?有人可以帮我吗?How do I fix this? Can anyone help me?推荐答案这是一个已知问题,包括:This is a known issue, including: RSP-19742:TEdit复制输入的字符 (已修复里约)RSP-19742: TEdit is duplicating entered characters(fixed in Rio) RSP-20493:TEdit / TMemo复制字母时文字识别功能已启用(Samsung VK) (在Rio固定)RSP-20493: TEdit / TMemo duplicating Letters when text recognition is on (Samsung VK)(fixed in Rio) TEdit 键入Enter或Backspace时,还存在复制文本的已知问题,包括:TEdit has also had known issues with duplicating text when Enter or Backspace are typed, including: RSP-14495:[Android] TEdit在按下返回键后在某些VK上重复了初始输入 (在里约热内卢固定)RSP-14495: [Android] TEdit duplicates initial input on some VKs after 'return' key is pressed(fixed in Rio) RSP-17232:在Android的FMX TEdit中按退格键会出现重复的单词 (已固定东京发行1)RSP-17232: Duplicate words appear on pressing backspace in an FMX TEdit in android(fixed in Tokyo Release 1) RSP-18478:当文本重复时使用Google Gboard按Backspcae (在东京发行版2中已修复)RSP-18478: Text are duplicated when press backspcae with Google Gboard(fixed in Tokyo Release 2) 这篇关于在输入TEdit时,它会将其内部的文本加倍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-23 22:45