Issue #20810:enable substitute context menu option in new mode only