Browse Source

Update README.md

pull/1523/head
Igor Demin 3 years ago committed by GitHub
parent
commit
44ef2f2194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tutorials/Keyboard/README.md

2
tutorials/Keyboard/README.md

@ -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

Loading…
Cancel
Save