diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-05-04 12:54:08 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-05-04 12:54:08 -0400 |
commit | 99d8dcfb0cb3043e43473eeb8619968cd0da2aaf (patch) | |
tree | 854e196852a41c26bda07d65a75f8be3edd31fd2 /src/ui | |
parent | d95ded0d6337f86f9aeecb9533ae2c3040abc326 (diff) |
move input.rs to process_event.rs
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/views/tui_textfield.rs | 4 | ||||
-rw-r--r-- | src/ui/widgets/tui_prompt.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/views/tui_textfield.rs b/src/ui/views/tui_textfield.rs index 997e664..b79e4a5 100644 --- a/src/ui/views/tui_textfield.rs +++ b/src/ui/views/tui_textfield.rs @@ -13,11 +13,11 @@ use unicode_width::UnicodeWidthStr; use crate::context::AppContext; use crate::event::AppEvent; +use crate::event::process_event; use crate::key_command::{complete_command, Command, InteractiveExecute}; use crate::ui::views::TuiView; use crate::ui::widgets::{TuiMenu, TuiMultilineText}; use crate::ui::TuiBackend; -use crate::util::input; struct CompletionTracker { pub index: usize, @@ -277,7 +277,7 @@ impl<'a> TuiTextField<'a> { AppEvent::Termion(_) => { context.flush_event(); } - event => input::process_noninteractive(event, context), + event => process_event::process_noninteractive(event, context), }; } } diff --git a/src/ui/widgets/tui_prompt.rs b/src/ui/widgets/tui_prompt.rs index bc1b210..4bbb2f5 100644 --- a/src/ui/widgets/tui_prompt.rs +++ b/src/ui/widgets/tui_prompt.rs @@ -6,9 +6,9 @@ use tui::widgets::{Clear, Paragraph, Wrap}; use crate::context::AppContext; use crate::event::AppEvent; +use crate::event::process_event; use crate::ui::views::TuiView; use crate::ui::TuiBackend; -use crate::util::input; pub struct TuiPrompt<'a> { prompt: &'a str, @@ -62,7 +62,7 @@ impl<'a> TuiPrompt<'a> { AppEvent::Termion(_) => { context.flush_event(); } - event => input::process_noninteractive(event, context), + event => process_event::process_noninteractive(event, context), }; } } |