I didn't read you sample code, but here is one idea to consider: Add a second button to your form that is not usable. When you want to close the dialog after a key is pressed, generate a ctlSelectEvent for this button. -- Peter Epstein
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
