Re-focus teminal after context drawer is closed
This commit is contained in:
parent
d3afe3f6bc
commit
9ed2dc45c4
1 changed files with 8 additions and 0 deletions
|
|
@ -776,6 +776,14 @@ impl Application for App {
|
||||||
self.update_focus()
|
self.update_focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn on_context_drawer(&mut self) -> Command<Message> {
|
||||||
|
if !self.core.window.show_context {
|
||||||
|
self.update_focus()
|
||||||
|
} else {
|
||||||
|
Command::none()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Handle application events here.
|
/// Handle application events here.
|
||||||
fn update(&mut self, message: Self::Message) -> Command<Self::Message> {
|
fn update(&mut self, message: Self::Message) -> Command<Self::Message> {
|
||||||
match message {
|
match message {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue