Display chat cursor only when chat has focus
This commit is contained in:
parent
9c9d9a51bb
commit
75e3a08b58
4 changed files with 81 additions and 48 deletions
|
|
@ -66,10 +66,9 @@ impl<M: Msg, S: MsgStore<M>> ChatState<M, S> {
|
|||
&self.store
|
||||
}
|
||||
|
||||
pub fn widget(&self, nick: String, focus: bool) -> Chat<M, S> {
|
||||
// TODO Handle focus
|
||||
pub fn widget(&self, nick: String, focused: bool) -> Chat<M, S> {
|
||||
match self.mode {
|
||||
Mode::Tree => Chat::Tree(self.tree.widget(nick)),
|
||||
Mode::Tree => Chat::Tree(self.tree.widget(nick, focused)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue