https://kotlinlang.org logo
Title
t

Thomas Hormes

04/24/2023, 6:23 PM
Is there any way to get the text currently highlighted by a user in a
Text
composable (or any variation thereof)? I'm currently using a
Text
composable wrapped inside
SelectionContainer
, however due to the fact that
LocalSelectionRegistrar
of
SelectionContainer
and such are
internal
there does not seem to be a way to find the currently highlighted text.
Since there seems to be no way (at least not one that I can find) to get what the user has selected in a
Text
composable: Where can I file a feature request for compose?
b

Ben Trengrove [G]

04/26/2023, 6:40 AM
s

Siyamed

04/26/2023, 7:14 AM
There is an existing bug named "selection api" if you search for it. Please star/vote ir
b

Ben Trengrove [G]

04/26/2023, 7:18 AM
t

Thomas Hormes

04/26/2023, 7:45 AM
Thank you 🙂