Comments (2)
Reproduced with 1.6.10-rc01 too.
from compose-multiplatform.
The problem here is that you're calling Window.requestFocus
, which transfers focus to the window component itself. Compose, then, doesn't receive the key events, because they go to the window, rather than to the component on which Compose listens to key events.
You simply need to do window.toFront()
instead.
P.S. All the workarounds in #4231 are needed because in that ticket the window receiving focus does not exist yet when the request is being made (and the app is not even in the foreground), which is not the case here.
from compose-multiplatform.
Related Issues (20)
- Compose resources fail in Android Studio preview HOT 4
- How can I set shortcuts' name that different with packageName HOT 4
- [Desktop] Can't capture native inputs in windows using windowHandle HOT 4
- CupertinoOverscrollEffect keeps LazyColumn offseted up even more items are added in
- TextFiled Cursor Issues HOT 1
- iOS. Crash when exceeding some height value in vertically scrollable content of ModalBottomSheet HOT 1
- Compose Resource incorrectly reads string chunks from a file
- Add androidx.lifecycle.compose.LifecycleEventEffect HOT 2
- Make `SwingPanel` interop blending by default
- Ress Class name - Compose multiplatform resources HOT 1
- Compose layout system doesn't handle `additionalSafeAreaInsets` correctly. HOT 1
- Crash when using `rememberWindowState`: DpSize is unspecified
- Documentation on moving existing Android & IOS production app to KMP state
- [Web][Wasm] Issue with Color Rendering in Compose Web: Inconsistent Lightness in Arabic Fonts HOT 1
- First click inside BasicAlertDialog accompanied by jump of rise component HOT 1
- Dragging to scroll clears selection
- How to use `NavigationSuiteScaffold` ? HOT 1
- Imageviewer build failed (Js Wasm)
- Resources Missing After Publishing Pod to Artifactory HOT 1
- Make livedata available on Apple targets HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose-multiplatform.