From f273833f96834fed596aa8a3d1454ad1577bfdb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Vald=C3=A9s?= Date: Tue, 4 Feb 2020 19:53:56 +0100 Subject: [PATCH] Added comment explaining Linux input hack --- src/window.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/window.rs b/src/window.rs index eaaca33..27dcdf6 100644 --- a/src/window.rs +++ b/src/window.rs @@ -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 { allow_next_char = true; }else {