Skip to content

Use KeyModifiers when implementing KeyMapping to match keyboard modifiers exactly#2804

Merged
Alexander Maryanovsky (m-sasha) merged 1 commit into
jb-mainfrom
m-sasha/use-KeyModifiers
Feb 27, 2026
Merged

Use KeyModifiers when implementing KeyMapping to match keyboard modifiers exactly#2804
Alexander Maryanovsky (m-sasha) merged 1 commit into
jb-mainfrom
m-sasha/use-KeyModifiers

Conversation

@m-sasha

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

Copy link
Copy Markdown

Following https://android-review.googlesource.com/c/platform/frameworks/support/+/3940279 use KeyModifiers to match shortcuts exactly in CMP too.

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

Note that technically, the windows bug was fixed in the AOSP CL, as the default (Windows/Linux) KeyMapping is defined in common.

Testing

Tested manually

This should be tested by QA

Release Notes

Fixes - Desktop

  • Match key modifiers exactly (without ignoring the state of other modifiers) when determining the corresponding text field action/command. This also fixes inputting 'a' and 'z' diacritics (e.g. 'ą' and 'ż') in text fields on Windows.

@m-sasha Alexander Maryanovsky (m-sasha) merged commit bb760e2 into jb-main Feb 27, 2026
19 checks passed
@m-sasha Alexander Maryanovsky (m-sasha) deleted the m-sasha/use-KeyModifiers branch February 27, 2026 19:32
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