Input for all screens
summary
As more large-screen devices appear, apps need concrete input support: updating to Jetpack Compose 1.2 alpha 2 enables click and scroll for mouse/trackpad; testing reveals 85% use peripherals more than half the time. Implement OnKeyListener or onPreviewKey to handle Enter/Escape and dispatchKeyShortcutEvent for Ctrl shortcuts; set nextFocusForward/focusProperties and clear unnecessary focusable views; add hover via OnHoverListener or clickable/hoverable; interpret action cancel for stylus and consider the low latency stylus library for drawing performance.
AI-written summary · about
chapters (5)
related talks
36mNavigation focus in 2024: Supporting keyboard navigation with Compose
38mExploration of Touch & Input in Jetpack Compose
40mExploration of Touch & Input in Jetpack Compose
43mBuilding Accessible Apps with Jetpack Compose
16mDeveloping for Android & large screens
18mThe key to keyboard and mouse support across tablets
28mJetpack Compose Techniques Needed at the Product Level
17mInput matters for Chrome OS
