crossterm-rs / crossterm

Cross platform terminal library rust
MIT License
3.29k stars 280 forks source link

Capture double click mouse events on Windows #826

Closed stphnt closed 10 months ago

stphnt commented 1 year ago

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.