Give focus to the selected terminal

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Petros Amoiridis 2023-03-08 19:47:57 +02:00
parent baa9e271d5
commit ad7e49ed06
No known key found for this signature in database
6 changed files with 43 additions and 20 deletions

View file

@ -1,4 +1,5 @@
mod persistence;
pub mod terminal_button;
pub mod terminal_element;
use std::{
@ -177,8 +178,8 @@ impl TerminalView {
}
}
pub fn handle(&self) -> ModelHandle<Terminal> {
self.terminal.clone()
pub fn model(&self) -> &ModelHandle<Terminal> {
&self.terminal
}
pub fn has_new_content(&self) -> bool {