TextField missing basic behavior?
I might well be missing something myself, because I just started out trying compose-dekstop.
I tried the most simple text field:
Copy code
var text by remember { mutableStateOf("") }
TextField(
value = text,
onValueChange = { text = it }
)
Things that don't work: DEL key, Pos1 and End keys, text selection using Shift-Left/Right, navigating by word using Ctrl-Left/Right
Using latest Kotlin 1.4.21 and org.jetbrains.compose version 0.3.0-build140
j
jim
01/15/2021, 12:25 PM
Yes, many of the widgets (including TextField) are still a work in progress; it's still early-days for Compose on Desktop. Please file bugs as that helps ensure we prioritize correctly.
e
eekboom
01/15/2021, 12:30 PM
Ok, thanks - I understand and will do.
Funny side note: With earlier 0.2.0-build132 at least Ctrl-A worked, but that is now also missing.
Also "singleLine = true" makes the text field to be visually a single line, but still allows entering multiple lines (the caret and rest of the text just becomes invisible when you press enter).
👀 1
eekboom
01/15/2021, 12:39 PM
Do you prefer one issue with all the problems I noted or maybe separate ones for
• DEL key
• Navigating with POS1/END, CTRL/CMD-LEFT/Right
• Selection with (CTRL-)SHIFT-LEFT/RIGHT and CTRL/CMD-A
• Proper behavior for singleLine=true
• Clipboard support
j
jim
01/15/2021, 12:58 PM
I don't have a strong preference. Personally I lean towards separate bugs, but let's see if @olonho has a preference.