crossterm
crossterm copied to clipboard
no mouse modifiers using konsole
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::*;
fn main() -> 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");
if let 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