Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
RichEditableText コントロール内でキャレット位置を設定する方法はありますか?
コントロールのコンテンツには、ユーザーが修正する必要があるエラーが含まれている可能性があり、[次へ/前へ] ボタンを使用して移動できます。ナビゲーション中に、テキスト内の各エラーの末尾にキャレット カーソルを設定したいと考えています。
まず、フォーカスを変更する必要があります。
テキストフィールド。setFocus()
次に位置を設定します。
テキストフィールド。selectRange()