Make Cocoa ShowMessage close with [Esc] without beeping
Original Reporter info from Mantis: zpeterson @boramis
-
Reporter name: Zoë Peterson
Original Reporter info from Mantis: zpeterson @boramis
- Reporter name: Zoë Peterson
Description:
This patch is an alternate fix for the changes in r59885. It prevents a beep when using [Esc] to close ShowMessage/MessageDlg dialogs, and adds support for closing MessageBox() sheets with [Esc], which the previous fix didn't handle.
Steps to reproduce:
The attached project has buttons for launching the various dialog box styles. Clicking any of the ShowMessage/MessageDlg/MessageBox buttons will call the respective functions. With the current implementation:
- ShowMessage & MessageDlg close with [Esc] but beep when doing so.
- MessageBox just beeps for [Esc] and stays open
- "MessageDlg w/ Cancel" and "MessageBox w/ Cancel" close with [Esc] and do not beep, since the system clicks their Cancel button.
With the new patch, all of the ShowMessage/MessageBox/MessageDlg buttons with or without cancel, close on [Esc] without beeping.
Mantis conversion info:
- Mantis ID: 36760
- Fixed in revision: 62697 (#7ba5991c)