Prepare cove event handling
This commit is contained in:
parent
441b9ac79e
commit
b18b71f3d6
3 changed files with 74 additions and 40 deletions
|
|
@ -1,5 +1,6 @@
|
|||
mod users;
|
||||
|
||||
use crossterm::event::KeyEvent;
|
||||
use tui::backend::Backend;
|
||||
use tui::layout::{Alignment, Constraint, Direction, Layout, Rect};
|
||||
use tui::text::Span;
|
||||
|
|
@ -10,6 +11,7 @@ use crate::client::cove::room::CoveRoom;
|
|||
|
||||
use self::users::CoveUsers;
|
||||
|
||||
use super::input::EventHandler;
|
||||
use super::styles;
|
||||
|
||||
pub struct CoveUi {
|
||||
|
|
@ -70,3 +72,11 @@ impl CoveUi {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl EventHandler for CoveUi {
|
||||
type Reaction = ();
|
||||
|
||||
fn handle_key(&mut self, event: KeyEvent) -> Option<Self::Reaction> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue