Skip to content

Set isClearFocusOnMouseDownEnabled to false by default#3020

Merged
Ekaterina Zaitseva (sekater) merged 2 commits into
release/1.11from
m-sasha/set-isClearFocusOnMouseDownEnabled-false
Apr 28, 2026
Merged

Set isClearFocusOnMouseDownEnabled to false by default#3020
Ekaterina Zaitseva (sekater) merged 2 commits into
release/1.11from
m-sasha/set-isClearFocusOnMouseDownEnabled-false

Conversation

@m-sasha

@m-sasha Alexander Maryanovsky (m-sasha) commented Apr 27, 2026

Copy link
Copy Markdown

Set ComposeUiFlags.isClearFocusOnMouseDownEnabled to false by default in order to preserve existing behavior.

Task to decide the default value for 1.12

Fixes https://youtrack.jetbrains.com/issue/CMP-10127

Testing

N/A

This should be tested by QA

Release Notes

Features - Multiple Platforms

  • (prerelease fix) The isClearFocusOnMouseDownEnabled flag is now false by default.

@m-sasha Alexander Maryanovsky (m-sasha) requested a review from a team April 27, 2026 15:19
@MatkovIvan

Copy link
Copy Markdown
Collaborator

Please add _(prerelease fix)_ to release notes, it wasn't a part of any stable version

@m-sasha

Copy link
Copy Markdown
Author

Please add _(prerelease fix)_ to release notes, it wasn't a part of any stable version

I considered this, but it's not a bug that was fixed, and the flag still exists. Only the default behavior was reverted to the previous one.

@m-sasha Alexander Maryanovsky (m-sasha) force-pushed the m-sasha/set-isClearFocusOnMouseDownEnabled-false branch from e9ae62a to ec72d60 Compare April 27, 2026 15:58
@MatkovIvan

Copy link
Copy Markdown
Collaborator

I considered this, but it's not a bug that was fixed, and the flag still exists. Only the default behavior was reverted to the previous one.

1.11 notes should contain only one description of this flag. It's better to add _(prerelease fix)_ to describe changes comparing to beta03, but comparing to 1.10 - it's better to just change the initial wording

@m-sasha

Alexander Maryanovsky (m-sasha) commented Apr 28, 2026

Copy link
Copy Markdown
Author

I considered this, but it's not a bug that was fixed, and the flag still exists. Only the default behavior was reverted to the previous one.

1.11 notes should contain only one description of this flag. It's better to add _(prerelease fix)_ to describe changes comparing to beta03, but comparing to 1.10 - it's better to just change the initial wording

Sure, let's change the wording in the release notes.
The original PRs and their release notes:

The wording to replace it:

"
It is now possible to make clicking outside of any focusable element (using the mouse) automatically clear focus from the currently focused element. This behavior can be enabled

  • On the desktop, by setting isClearFocusOnMouseDownEnabled in ComposePanel, ComposeWindow, ComposeDialog.
  • On iOS, by setting isClearFocusOnMouseDownEnabled in the configure lambda when creating Compose components.
  • On web, by setting isClearFocusOnMouseDownEnabled in ComposeViewportConfiguration.
  • On all platforms, globally, via ComposeUiFlags.isClearFocusOnMouseDownEnabled.

"

@sekater Ekaterina Zaitseva (sekater) merged commit da208c8 into release/1.11 Apr 28, 2026
23 checks passed
@sekater Ekaterina Zaitseva (sekater) deleted the m-sasha/set-isClearFocusOnMouseDownEnabled-false branch April 28, 2026 12:22
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.

3 participants