1 Reply Latest reply on Apr 12, 2009 8:07 PM by atta707

    How to set the focus for a button in a multi-button Alert dialog?


      Hi there,


      I have a basic two button Alert dialog... "Are you sure you want to do this?  YES or NO".


      Everything works fine about it but the YES button takes the focus so if the user accidentally hits the RETURN key, YES is what is pressed. I want to have the NO button to be the focus so there are no accidental yes confirmations unless the user specifically clicks on YES. I've set the focus on a variety of different components but I can't find any information on how to do this, or if it can be done. Any ideas?