Skip to content

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Oct 6, 2025

Prevent preventDefault() for modifier-only keys to fix mouse cursor freezing when modifiers are pressed.

Previously, evt.preventDefault() was called indiscriminately for all keydown events, including modifier keys. This blocked the browser's default handling of these keys, which interfered with mouse movement events, causing the cursor to stop responding. This change ensures that only non-modifier keys have their default behavior prevented, allowing modifier keys to function correctly alongside mouse interactions.


Linear Issue: OHI-1994

Open in Cursor Open in Web

Co-authored-by: ar.sedghi <ar.sedghi@gmail.com>
Copy link

cursor bot commented Oct 6, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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