Re-focus teminal after context drawer is closed

This commit is contained in:
Mattias Eriksson 2024-01-17 16:48:15 +01:00
parent d3afe3f6bc
commit 9ed2dc45c4

View file

@ -776,6 +776,14 @@ impl Application for App {
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.
fn update(&mut self, message: Self::Message) -> Command<Self::Message> {
match message {