diff --git a/src/input_common.rs b/src/input_common.rs index 5c3ec3d85..762d340f4 100644 --- a/src/input_common.rs +++ b/src/input_common.rs @@ -594,6 +594,9 @@ fn readch(&mut self) -> CharEvent { } let mut seq = WString::new(); let mut key = key_with_escape; + if key == Some(Key::from_raw(key::Invalid)) { + continue; + } let mut consumed = 0; for i in 0..buffer.len() { self.parse_codepoint(