diff --git a/src/views/menubar.rs b/src/views/menubar.rs index 6ab05b9..4811f0a 100644 --- a/src/views/menubar.rs +++ b/src/views/menubar.rs @@ -195,6 +195,8 @@ impl Menubar { fn select_child(&mut self, open_only: bool) -> EventResult { match self.root.children[self.focus] { MenuItem::Leaf(_, ref cb) if !open_only => { + // Go inactive after an action. + self.state = State::Inactive; EventResult::Consumed(Some(cb.clone())) } MenuItem::Subtree(_, ref tree) => {