In the MessageBox.confirm method the button "Yes" is always the default. It should be nice to set the "No" button as default.
I say that because of some ergonomics theory: the default button should cancel the user operation.
For instance, I have a messagebox like "Confirm delete? Yes or no". The yes button is default. If the user hits enter without intention, the record is deleted asap. It should cancel the delete.
Hope you undertand!