fix(menu): Correct confirm detection (refs #5064)