commonMain.com.huanshankeji.compose.foundation.text.KeyboardActions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-multiplatform-html-unified-common
Show all versions of compose-multiplatform-html-unified-common
Common wrappers of components (including layouts) and modifiers for Compose UI (Android, desktop (JVM), iOS, and web (Kotlin/Wasm)) and Compose HTML
The newest version!
package com.huanshankeji.compose.foundation.text
import androidx.compose.runtime.Stable
import com.huanshankeji.compose.foundation.text.input.ImeAction
import kotlin.jvm.JvmInline
// copied and adapted from `androidx.compose.foundation.text`
@JvmInline
value class KeyboardActions(
val onAny: (KeyboardActionScope.() -> Unit)? = null,
) {
companion object {
@Stable
val Default: KeyboardActions = KeyboardActions()
}
}
interface KeyboardActionScope {
fun defaultKeyboardAction(imeAction: ImeAction)
object DoNothingInstance : KeyboardActionScope {
override fun defaultKeyboardAction(imeAction: ImeAction) {
// do nothing for now
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy