diff --git a/helix-term/src/ui/explore.rs b/helix-term/src/ui/explore.rs index f7adedb2..bfa95c82 100644 --- a/helix-term/src/ui/explore.rs +++ b/helix-term/src/ui/explore.rs @@ -4,8 +4,8 @@ use crate::{ ctrl, key, shift, ui, }; use anyhow::{bail, ensure, Result}; -use crossterm::event::{Event, KeyEvent}; use helix_core::Position; +use helix_view::input::{Event, KeyEvent}; use helix_view::{ editor::Action, graphics::{CursorKind, Modifier, Rect}, diff --git a/helix-term/src/ui/tree.rs b/helix-term/src/ui/tree.rs index 4da57ad5..41ac74ff 100644 --- a/helix-term/src/ui/tree.rs +++ b/helix-term/src/ui/tree.rs @@ -7,9 +7,9 @@ use crate::{ compositor::{Context, EventResult}, ctrl, key, shift, }; -use crossterm::event::{Event, KeyEvent}; use helix_core::unicode::width::UnicodeWidthStr; -use helix_view::graphics::Rect; +use helix_view::input::Event; +use helix_view::{graphics::Rect, input::KeyEvent}; use tui::{buffer::Buffer as Surface, text::Spans}; pub trait TreeItem: Sized {