TextField missing basic behavior? I might well be ...
# compose-desktop
e
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
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
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
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
I don't have a strong preference. Personally I lean towards separate bugs, but let's see if @olonho has a preference.
o
Please create an umbrella issue
1