Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/menu.rs')
| -rw-r--r-- | helix-term/src/ui/menu.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/helix-term/src/ui/menu.rs b/helix-term/src/ui/menu.rs index 7d831e15..6c11618a 100644 --- a/helix-term/src/ui/menu.rs +++ b/helix-term/src/ui/menu.rs @@ -1,8 +1,7 @@ use crate::{ - compositor::{Callback, Component, Compositor, Context, EventResult, RenderContext}, + compositor::{Callback, Component, Compositor, Context, Event, EventResult, RenderContext}, ctrl, key, shift, }; -use crossterm::event::Event; use tui::widgets::Table; pub use tui::widgets::{Cell, Row}; @@ -210,7 +209,7 @@ impl<T: Item + 'static> Component for Menu<T> { compositor.pop(); })); - match event.into() { + match event { // esc or ctrl-c aborts the completion and closes the menu key!(Esc) | ctrl!('c') => { (self.callback_fn)(cx.editor, self.selection(), MenuEvent::Abort); |