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:
parent
6892d8a265
commit
4ee9b8d7aa
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user