Kshitij Patil
03/19/2021, 10:12 AMonImeActionPerformed
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
allan.conda
03/19/2021, 10:17 AMKshitij Patil
03/19/2021, 10:23 AMallan.conda
03/19/2021, 10:35 AMval keyboard = LocalSoftwareKeyboardController.current
OutlinedTextField(
keyboardActions = KeyboardActions {
keyboard?.hideSoftwareKeyboard()
}
)
Kshitij Patil
03/19/2021, 10:42 AMwith(options.keyboardActions) { ... }
, changing it as below solved the issue. (options
here is my delegate class)