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

no mouse modifiers using konsole #708

Closed
deltanedas opened this issue Sep 5, 2022 · 1 comment
Closed

no mouse modifiers using konsole #708

deltanedas opened this issue Sep 5, 2022 · 1 comment

Comments

@deltanedas
Copy link

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

  1. 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)
}
  1. run it
  2. 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

@TimonPost
Copy link
Member

I moved your report over to: #685.

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

No branches or pull requests

2 participants