Added comment explaining Linux input hack

macos-click-through
Jon Valdés 5 years ago
parent 7cfe625777
commit f273833f96

@ -104,6 +104,9 @@ pub fn ui_loop() {
}, },
.. ..
} => { } => {
// Only interpret 'char' events when we get a previous event without a virtual
// keycode (which we ignore for KeyboardInput events).
// This is a hack so we don't lose a bunch of input events on Linux
if input.virtual_keycode == None { if input.virtual_keycode == None {
allow_next_char = true; allow_next_char = true;
}else { }else {

Loading…
Cancel
Save