diff --git a/src/platform/cocoamain.mm b/src/platform/cocoamain.mm index 14e214ba..ad147923 100644 --- a/src/platform/cocoamain.mm +++ b/src/platform/cocoamain.mm @@ -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. */