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

alt key modifier is not reported #46

Open
skydig opened this issue Sep 2, 2022 · 4 comments
Open

alt key modifier is not reported #46

skydig opened this issue Sep 2, 2022 · 4 comments

Comments

@skydig
Copy link

skydig commented Sep 2, 2022

when press ctrl + A, following is reported(don't understant \u{1a} means) on windows 10 OS
character='\u{1a}'
_keymods _repeat=KeyMods { shift: false, ctrl: true, alt: false, logo: false } false

when press alt+... nothing reported

but alt key is ok on linux ubuntu OS.

@skydig
Copy link
Author

skydig commented Sep 2, 2022

more information:
on Ubuntu, home end inert delete enter pgdown pgup, arrow up, arrow down, arrow left, arrow right capslock ... are not reported...

I print just like following:

fn char_event(
&mut self,
_ctx: &mut mq::Context,
character: char,
_keymods: mq::KeyMods,
_repeat: bool,
) {
println!("keymods={:?}",_keymods); println!("char={:?}",character);
println!("character={:?}",character); println!("_keymods _repeat={:?} {:?}",_keymods, _repeat);
self.egui_mq.char_event(character);

}

@skydig
Copy link
Author

skydig commented Sep 3, 2022

about linux, after code reading, I think KEYSYMTAB(in keycodes.rs) should be enlarged to support special key event report

@not-fl3
Copy link
Owner

not-fl3 commented Sep 3, 2022

about linux, after code reading, I think KEYSYMTAB(in keycodes.rs) should be enlarged to support special key event report

Feel free to open a PR!

@skydig
Copy link
Author

skydig commented Sep 4, 2022

OK, I will open one PR for not-fl3/miniquad

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