This commit is contained in:
filipriec_vm
2026-01-11 10:41:22 +01:00
parent d872b3d786
commit d41182b13b
3 changed files with 4 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ pub trait Component {
fn handle_text( fn handle_text(
&mut self, &mut self,
focus: &Self::Focus, _focus: &Self::Focus,
_ch: char, _ch: char,
) -> Result<Option<Self::Event>, ComponentError> { ) -> Result<Option<Self::Event>, ComponentError> {
Ok(None) Ok(None)

View File

@@ -1,5 +1,3 @@
// path_from_the_root: src/input/action.rs // path_from_the_root: src/input/action.rs
pub trait Action: Clone + PartialEq + Eq + core::fmt::Debug {} pub trait Action: Clone + PartialEq + Eq + core::fmt::Debug {}
impl Action for ComponentAction {}

View File

@@ -7,7 +7,7 @@ pub mod focus;
pub mod input; pub mod input;
pub mod prelude { pub mod prelude {
pub use crate::component::*; pub use crate::component::{Component, ComponentAction, ComponentError};
pub use crate::focus::*; pub use crate::focus::{FocusError, FocusId, FocusManager, FocusQuery, Focusable};
pub use crate::input::*; pub use crate::input::{Action, Bindings, Key, KeyCode, KeyModifiers, MatchResult};
} }