Not sure if this is just some outdated docs, but i...
# compose-desktop
h
Not sure if this is just some outdated docs, but in the code, shouldn't the
by remember
changed
= remember
? And to then add on that, in the places where they are used, to use the
value
property on them? https://github.com/JetBrains/compose-jb/tree/master/tutorials/Keyboard#focus-related-events
i
Just add these imports:
Copy code
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
it is delegates for more convenient way to read/write states (using x instead of x.value): https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#getvalue https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#setvalue
h
Ah, I see
Thank you
x
How come it can't be imported automatically?
i
How come it can't be imported automatically?
It is a bug of Kotlin plugin: https://youtrack.jetbrains.com/issue/KT-39199