on master help sign in
Ignore key-release keyboard events (#6139)
27211abMichael Davis
helix-term/src/application.rs+5
@@ -638,6 +638,11 @@ impl Application {
638 self.compositor
638 self.compositor
639 .handle_event(&Event::Resize(width, height), &mut cx)
639 .handle_event(&Event::Resize(width, height), &mut cx)
640 }
640 }
641+ // Ignore keyboard release events.
642+ CrosstermEvent::Key(crossterm::event::KeyEvent {
643+ kind: crossterm::event::KeyEventKind::Release,
644+ ..
645+ }) => false,
641 event => self.compositor.handle_event(&event.into(), &mut cx),
646 event => self.compositor.handle_event(&event.into(), &mut cx),
642 };
647 };
643
648