OS X: don't remap OK in message boxes to Escape.
The platform convention is to use Return.
This commit is contained in:
parent
f6eb079d41
commit
b8abf698c9
|
@ -1091,7 +1091,7 @@ bool TextEditControlIsVisible(void) {
|
||||||
void SolveSpace::DoMessageBox(const char *str, int rows, int cols, bool error) {
|
void SolveSpace::DoMessageBox(const char *str, int rows, int cols, bool error) {
|
||||||
NSAlert *alert = [[NSAlert alloc] init];
|
NSAlert *alert = [[NSAlert alloc] init];
|
||||||
[alert setAlertStyle:(error ? NSWarningAlertStyle : NSInformationalAlertStyle)];
|
[alert setAlertStyle:(error ? NSWarningAlertStyle : NSInformationalAlertStyle)];
|
||||||
[[alert addButtonWithTitle:@"OK"] setKeyEquivalent: @"\033"];
|
[alert addButtonWithTitle:@"OK"];
|
||||||
|
|
||||||
/* do some additional formatting of the message these are
|
/* do some additional formatting of the message these are
|
||||||
heuristics, but they are made failsafe and lead to nice results. */
|
heuristics, but they are made failsafe and lead to nice results. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user