From b8abf698c93d2ceb151602069df9b148e3310eff Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 12 Oct 2016 18:52:36 +0000 Subject: [PATCH] OS X: don't remap OK in message boxes to Escape. The platform convention is to use Return. --- src/cocoa/cocoamain.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa/cocoamain.mm b/src/cocoa/cocoamain.mm index 8cd7e1f..97b699c 100644 --- a/src/cocoa/cocoamain.mm +++ b/src/cocoa/cocoamain.mm @@ -1091,7 +1091,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. */