From 7fc8161fc96f2e334e2cbc85a250b079d6e710a8 Mon Sep 17 00:00:00 2001 From: Nathaniel Ledford Date: Fri, 23 Oct 2026 07:00:52 -0400 Subject: [PATCH] MENU-BAR: a rebuilt native menu applies the keys' yield state in the same frame --- apps/lightcraft/src/native_menu.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/lightcraft/src/native_menu.rs b/apps/lightcraft/src/native_menu.rs index a60354bd1..031976b23 100644 --- a/apps/lightcraft/src/native_menu.rs +++ b/apps/lightcraft/src/native_menu.rs @@ -478,8 +478,9 @@ impl NativeMenu { } let bar = menu_bar(app); if structure_of(&bar) != self.structure { + // (no early return: a rebuild installs every accelerator and resets the state they were synced + // to, so the sync below runs in this same frame and no key reaches the menu in between) self.rebuild(app); - return quit; } fn walk(nodes: &[MenuNode], items: &mut HashMap) { for n in nodes {