egui-miniquad icon indicating copy to clipboard operation
egui-miniquad copied to clipboard

alt key modifier is not reported

Open skydig opened this issue 3 years ago • 4 comments

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 avatar Sep 02 '22 16:09 skydig

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 avatar Sep 02 '22 20:09 skydig

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

skydig avatar Sep 03 '22 09:09 skydig

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!

not-fl3 avatar Sep 03 '22 14:09 not-fl3

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

skydig avatar Sep 04 '22 00:09 skydig