FigCraft puts the window's Escape back into egui's input at the start of the frame, which took it from the focused button of a modal framework dialog before the dialog ran. It leaves the Escape alone while a modal framework dialog is open. The modeless notice of the last update closes on Escape wherever the focus is.