In order to delete the highlighted item, press the “Delete" button, and when the confirm dialog is shown, press the “Yes(Y)” button in it.<br/><br/>Is my sentence correct and natural?<br/><br/>I wonder if the "when..." part works well.<br/><br/>Thanks