Update README.md

This commit is contained in:
Igor Demin
2021-12-01 15:08:48 +03:00
committed by GitHub
parent b5fb48a6d6
commit 44ef2f2194

View File

@@ -78,7 +78,7 @@ Note the annotation `@OptIn(ExperimentalComposeUiApi::class)`. Some keys related
## Window-scoped events
`Window`,`singleWindowApplication` and `Dialog` functions have a `onPreviewKeyEvent` and a `onKeyEvent` properties. It is possible to use them to define keyboard event handlers that are always active in the current window. You possibly want to use `onPreviewKeyEvent` here to intercept events. Here is an example:
`Window`, `singleWindowApplication` and `Dialog` functions have a `onPreviewKeyEvent` and a `onKeyEvent` properties. It is possible to use them to define keyboard event handlers that are always active in the current window. You possibly want to use `onPreviewKeyEvent` here to intercept events. Here is an example:
``` kotlin
import androidx.compose.foundation.layout.Arrangement