diff --git a/termwiz/src/input.rs b/termwiz/src/input.rs index 3b8bc44a0..6e955fe63 100644 --- a/termwiz/src/input.rs +++ b/termwiz/src/input.rs @@ -326,6 +326,10 @@ impl KeyCode { ) -> Result { use KeyCode::*; + if !flags.contains(KittyKeyboardFlags::REPORT_EVENT_TYPES) && !is_down { + return Ok(String::new()); + } + // Normalize let key = match self { Char('\r') => Enter,