Ed Leafe wrote: > On Jul 6, 2008, at 10:04 PM, Paul McNett wrote: > >> It may be that for the accelerator table to work on Windows, there >> needs >> to be at least one control that can receive focus. We may need to >> reimplement the esc using the keypress event for the form or even >> the app. > > > It seems to be deeper than that. I just tried dOkCancelDialog under > Windows, with buttons that can receive focus, as well as a button set > up as a Cancel button, and it ignored Escape in all cases.
Interesting. I just ran my app on Windows (using Dabo 4112, one before the dDialog changes - I'll test with HEAD later). I pulled up my subclass of dOkCancelDialog and pressed Esc. The Cancel button depressed and the dialog disappeared. Then I ran dDialog.py. The first blank dialog does nothing on Esc (but it may not be coded to do anything) but the second, a dOkCancelDialog does close the dialog when pressing Esc. So at least we know there is some combination that works. This was on WinXP. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
