Skip to content

Support Modifier.keepScreenOn in Web Platforms#2784

Merged
Oleksandr Karpovich (eymar) merged 15 commits into
JetBrains:jb-mainfrom
ApoloApps:webWakeLock
Apr 16, 2026
Merged

Support Modifier.keepScreenOn in Web Platforms#2784
Oleksandr Karpovich (eymar) merged 15 commits into
JetBrains:jb-mainfrom
ApoloApps:webWakeLock

Conversation

@ApoloApps

Copy link
Copy Markdown

Support for Modifier.keepScreenOn for Web platform using Screen Wake Lock Api
Manages request when one or more clients (number of Modifier.Nodes requesting it) and the underlying call to Web Api. It also manages release when no more modifiers are in Composition plus the managing of Locks when window becomes blur and subsequently focused again (since the Api will release the lock when that happens)

Fixes Web-Support-Modifier.keepScreenOn

Testing

Used newly introduced tests

This should be tested by QA

Release Notes

Features - Web

@eymar Oleksandr Karpovich (eymar) merged commit 193766a into JetBrains:jb-main Apr 16, 2026
17 checks passed
@eymar

Copy link
Copy Markdown
Member

Thank you for your contribution! :)

@ApoloApps ApoloApps deleted the webWakeLock branch April 16, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants