Opt: enter or leave
This commit is contained in:
parent
abf78ab6f7
commit
5dfd041d8f
3 changed files with 29 additions and 9 deletions
|
|
@ -247,6 +247,16 @@ pub fn session_handle_flutter_key_event(
|
|||
}
|
||||
}
|
||||
|
||||
pub fn session_enter_or_leave(id: String, enter: bool) {
|
||||
if let Some(session) = SESSIONS.read().unwrap().get(&id) {
|
||||
if enter {
|
||||
session.enter();
|
||||
} else {
|
||||
session.leave();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn session_input_key(
|
||||
id: String,
|
||||
name: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue