You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Mouse up/down/move events never have KeyModifiers applied.
Tested with ctrl and alt, shift+click is used directly by konsole so that probably shouldn't be known.
To Reproduce
compile this using latest crossterm on crates.io:
use std::io::stdout;use crossterm::*;fnmain() -> Result<()>{
terminal::enable_raw_mode()?;execute!(stdout(), event::EnableMouseCapture)?;println!("Capturing events, press any key to exit\r");loop{let event = event::read()?;println!("Event: {event:?}\r");iflet event::Event::Key(_) = event {break;}}
terminal::disable_raw_mode()?;execute!(stdout(), event::DisableMouseCapture)}
run it
hold ctrl and click, modifiers are still NONE!
Expected behavior
hold control to get a modifier
OS
linux 5.18.0-4-amd64
Terminal/Console
Konsole X11 22.04.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Mouse up/down/move events never have
KeyModifier
s applied.Tested with ctrl and alt, shift+click is used directly by konsole so that probably shouldn't be known.
To Reproduce
NONE
!Expected behavior
hold control to get a modifier
OS
linux 5.18.0-4-amd64
Terminal/Console
Konsole X11 22.04.1
The text was updated successfully, but these errors were encountered: