Prepare cove event handling

This commit is contained in:
Joscha 2022-03-05 21:35:40 +01:00
parent 441b9ac79e
commit b18b71f3d6
3 changed files with 74 additions and 40 deletions

View file

@ -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
}
}