Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture double click mouse events on Windows #826

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

stphnt
Copy link
Contributor

@stphnt stphnt commented Sep 23, 2023

Fixes #825

When double clicking on Windows, the crossterm_winapi emits the first click with EventFlags::PressOrRelease and the second click with EventFlags::DoubleClick. Previously this code explicitly ignored mouse events with EventFlags::DoubleClick because "double click not supported by unix terminals." This change captures the double click and surfaces them as normal click events.

When double clicking on Windows, the crossterm_winapi emits the first
click with `EventFlags::PressOrRelease` and the second click with
`EventFlags::DoubleClick`. Previously this code explicitly ignored mouse
events with `EventFlags::DoubleClick` because "double click not
supported by unix terminals." This change captures the double click and
surfaces them as normal click events.
@stphnt stphnt changed the title Capture double click mouse events Capture double click mouse events on Windows Sep 23, 2023
@TimonPost TimonPost merged commit cd1780c into crossterm-rs:master Jan 6, 2024
@stphnt stphnt deleted the capture-double-click-events branch March 21, 2024 07:15
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.

Missing mouse clicks on Windows
2 participants