fixes
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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 {}
|
|
||||||
|
|||||||
@@ -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};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user