OS X: don't remap OK in message boxes to Escape.

The platform convention is to use Return.
pull/97/head
whitequark 2016-10-12 18:52:36 +00:00
parent b0363802d8
commit b5f5e05336
1 changed files with 1 additions and 1 deletions

View File

@ -1082,7 +1082,7 @@ bool TextEditControlIsVisible(void) {
void SolveSpace::DoMessageBox(const char *str, int rows, int cols, bool error) {
NSAlert *alert = [[NSAlert alloc] init];
[alert setAlertStyle:(error ? NSWarningAlertStyle : NSInformationalAlertStyle)];
[[alert addButtonWithTitle:@"OK"] setKeyEquivalent: @"\033"];
[alert addButtonWithTitle:@"OK"];
/* do some additional formatting of the message these are
heuristics, but they are made failsafe and lead to nice results. */