简体   繁体   English

Compose 中的 TextField:双击 select 文本不起作用

[英]TextField in Compose : Double Tap to select text is not working

I am playing with Jetpack Compose.我正在玩 Jetpack Compose。 In previous Android Views, we could double tap on a word in an EditText/TextInputLayout/TextInputEditText to select the entire word, and provide options like copy-paste, select-all, etc. This does not work with Jetpack Compose TextField.在以前的 Android 视图中,我们可以双击 EditText/TextInputLayout/TextInputEditText 中的一个词到 select 整个词,并提供复制粘贴、全选等选项。这不适用于 Jetpack Compose TextField。 The only way to make the copy-past/select-all options is with a long press on the TextField.制作复制过去/全选选项的唯一方法是长按 TextField。

Is there a solution for this?有解决办法吗? (Tested with Compose stable version 1.1.1 and 1.2.0-alpha07) (使用 Compose 稳定版 1.1.1 和 1.2.0-alpha07 测试)

This issue has been reported on Googles's issue tracker thread here https://issuetracker.google.com/issues/137321832 .此问题已在此处的 Google 问题跟踪器线程https://issuetracker.google.com/issues/137321832中报告。 It's currently assigned but not yet fixed目前已分配但尚未修复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM