diff --git a/src/main.rs b/src/main.rs index 1e1e096..54ce6e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -776,6 +776,14 @@ impl Application for App { self.update_focus() } + fn on_context_drawer(&mut self) -> Command { + if !self.core.window.show_context { + self.update_focus() + } else { + Command::none() + } + } + /// Handle application events here. fn update(&mut self, message: Self::Message) -> Command { match message {