diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index d78964194..ee2a438c0 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -638,6 +638,11 @@ pub async fn handle_terminal_events( self.compositor .handle_event(&Event::Resize(width, height), &mut cx) } + // Ignore keyboard release events. + CrosstermEvent::Key(crossterm::event::KeyEvent { + kind: crossterm::event::KeyEventKind::Release, + .. + }) => false, event => self.compositor.handle_event(&event.into(), &mut cx), };