Hook up simple cursor movement
This commit is contained in:
parent
48943f2316
commit
34e7af684b
4 changed files with 45 additions and 58 deletions
|
|
@ -295,15 +295,7 @@ impl EuphRoom {
|
|||
crossterm_lock: &Arc<FairMutex<()>>,
|
||||
event: KeyEvent,
|
||||
) {
|
||||
// Position of vertical line between main part and nick list
|
||||
let vsplit = size.width.saturating_sub(self.nick_list_width + 1) as i32;
|
||||
// Position of horizontal line between status and chat
|
||||
let hsplit = 1_i32;
|
||||
let chat_size = Size::new(vsplit as u16, size.height.saturating_sub(hsplit as u16 + 1));
|
||||
|
||||
// self.chat
|
||||
// .handle_navigation(terminal, chat_size, event)
|
||||
// .await;
|
||||
self.chat.handle_navigation(event).await;
|
||||
|
||||
if let Some(room) = &self.room {
|
||||
if let Ok(Some(Status::Joined(_))) = room.status().await {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue