Author: manolo
Date: 2011-05-13 04:05:00 -0700 (Fri, 13 May 2011)
New Revision: 8660
Log:
Fix for STR #2629: remove beep when typing cmd-<key> under Mac OS.

Modified:
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2011-05-13 07:58:26 UTC (rev 8659)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2011-05-13 11:05:00 UTC (rev 8660)
@@ -1694,7 +1694,8 @@
       break;
     }
   }
-  if (!no_text_key) {
+  if (!no_text_key && !(Fl::e_state & FL_META) ) {
+    // Don't send cmd-<key> to interpretKeyEvents because it beeps.
     // Then we can let the OS have a stab at it and see if it thinks it
     // should result in some text
     NSText *edit = [[theEvent window]  fieldEditor:YES forObject:nil];

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to