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