Nicolai
04/21/2023, 4:28 PMTravis Griggs
04/21/2023, 4:33 PMonValveChange
hook?Nicolai
04/21/2023, 4:48 PMTravis Griggs
04/21/2023, 4:58 PMonValueChange = { update ->
if (update.text == curentValue.text) {
// apparently just moving the cursor, let it go through as is
currentValue = update
} else {
// text changed, we'll need to format it I guess
val formatted = format(update.text)
currentValue = TextFieldValue(formatted, TextRange(formatted.length)
}
... or something like that