Skip to content

Conversation

smoores-dev
Copy link
Contributor

@smoores-dev smoores-dev commented Oct 7, 2025

Closes #12752
Closes #16074
Closes #17892

Some input devices report very delayed mouseup events, which can cause mouseup -> control to be reported as mouseup+control, causing frustrating behavior during common editing actions, like moving the cursor into a word with the mouse and then quickly triggering a keyboard shortcut.

Note that although web browsers largely seem to reflect modifiers from only mouseup events on their corresponding click events, text editors (e.g. VS Code) only respond to modifiers that were held during both mousedown and mouseup events.

These were all marked as closed by #22988. This fix was reverted by #35075, which attempted to align behavior more closely with browser behavior. As can be seen by the additional comments on #12752, this has caused a frustrating regression in user experience for at least some input devices.

Release Notes:

  • Re-fixed a bug where pressing ctrl/cmd (or other modifiers) after mouse down but before mouse up still triggered ctrl/cmd+click behavior (e.g. "go to definition")

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 7, 2025
@smoores-dev smoores-dev changed the title Report click event modifiers from both keydown and keyup. Report click event modifiers from both keydown and keyup Oct 7, 2025
@smoores-dev smoores-dev changed the title Report click event modifiers from both keydown and keyup Report click event modifiers from both mousedown and mouseup Oct 8, 2025
Some input devices report very delayed keyup events, which can cause
keyup -> control to be reported as keyup+control, causing frustrating
behavior during common editing actions, like moving the cursor into
a word with the mouse and then quickly triggering a keyboard shortcut.
@smoores-dev smoores-dev force-pushed the click-event-modifiers-2 branch from 90aed4e to 61ee8f8 Compare October 11, 2025 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

2 participants