argument to TextField, I had a chance to implement some global logic for all the actions. Like I had written if the action was
Done
, hide the software keyboard and it was possible to do so because of the handy
softwareKeyboardController
argument to
onImeActionPerformed
. How can I do the same using KeyboardActions now? The callback methods are not “Composables” so I won't even be able to use
LocalSoftwareKeyboardController.current
a
allan.conda
03/19/2021, 10:17 AM
get the reference outside the callback?
k
Kshitij Patil
03/19/2021, 10:23 AM
Doesn’t work. It was not accessible for some reason. Also, do you think it’d work? I feel like we don’t know when that callback will be called and getting reference outside it wouldn’t always be valid.