Fix for STR #2629: remove beep when typing cmd-<key> under Mac OS.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-05-13 11:05:00 +00:00
parent 6892d8a265
commit 4ee9b8d7aa

View File

@ -1694,7 +1694,8 @@ static void q_set_window_title(NSWindow *nsw, const char * name ) {
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];