OS X: don't remap OK in message boxes to Escape.
The platform convention is to use Return.pull/97/head
parent
b0363802d8
commit
b5f5e05336
|
@ -1082,7 +1082,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