disableWritingModeOnTap

Extension Modifier function to apply to the components which have to manage the currentActiveWritingMode, this method allows to disable the writing mode tapping any part of the component where this method is applied

Usage example:

val isWritingMode = remember { mutableStateOf(false) }
Scaffold(
     modifier = Modifier
         .disableWritingModeOnTap(), // clicking on any point of the Scaffold will disable the writing mode
     topBar = {
         LargeTopAppBar(
             colors = TopAppBarDefaults.topAppBarColors(
                 containerColor = MaterialTheme.colorScheme.primary
             ),
             title = {
                 val text = remember { mutableStateOf("any_text") }
                 WriteableText(
                     isInWritingMode = isWritingMode,
                     writeableText = text,
                     placeholder = "placeholder"
                 )
             }
         )
     }
) {
     ...
}