Repository navigation
fix: Ignore duplicate modifier key releases in keyboard chords - #344157
Open
Zhao Chi (vectorsss) wants to merge 1 commit into
Open
Zhao Chi (vectorsss) wants to merge 1 commit into
Zhao Chi (vectorsss) wants to merge 1 commit into
Conversation
Author
|
@microsoft-github-policy-service agree |
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
from
October 25, 2026 21:03
c6e908c to
c1e5349
Compare
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
2 times, most recently
from
October 26, 2026 08:33
38b2d81 to
d7be16d
Compare
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
7 times, most recently
from
October 27, 2026 11:35
436fafa to
6116440
Compare
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
2 times, most recently
from
October 27, 2026 19:14
7d31f2a to
412707c
Compare
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
2 times, most recently
from
October 29, 2026 19:01
d0a95d0 to
14624ff
Compare
Author
|
Ulugbek Abdullaev (@ulugbekna), could you take a look at the proposed approach when you have a chance? The change addresses duplicate modifier |
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
3 times, most recently
from
October 30, 2026 10:19
c955848 to
8fa1163
Compare
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
from
October 31, 2026 15:59
8fa1163 to
20b09bf
Compare
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
9 times, most recently
from
November 6, 2026 16:48
aff1414 to
4d440e7
Compare
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
4 times, most recently
from
November 12, 2026 07:25
818677c to
04b179d
Compare
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
2 times, most recently
from
November 20, 2026 16:37
6bd22f0 to
cb8792a
Compare
Zhao Chi (vectorsss)
force-pushed
the
fix/universal-control-modifier-keyup
branch
from
November 30, 2026 17:26
cb8792a to
dc6853a
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #344156
When using Apple Universal Control, VS Code can receive repeated modifier
keyupevents without an intervening correspondingkeydown. Single-modifier chord handling interprets these as a double tap and cancels the pending chord. For example,Cmd+K, release all keys, thenVcan report(⌘K, ⌘) is not a commandbefore V is pressed.This change tracks released modifiers in
AbstractKeybindingServiceand ignores subsequent releases of the same modifier until its next keydown. It usescodewhen available to distinguish left and right modifiers, with a fallback to the normalizedkeyCode. A new keydown allows the next release to be processed, preserving intentional modifier double taps.Validation
git diff --check: passed.Cmd+K VandShift+Cmd+K Vopened the Markdown preview to the side. Troubleshooting logs confirmed duplicate Meta/Shift releases were ignored andmarkdown.showPreviewToSidewas invoked.A full product build and full integration test run have not been performed.
Manual verification
Cmd+K, release all keys, then pressV. Repeat withShift+Cmd+K, release all keys, thenV.