Skip to content

Commit

Permalink
Fix for STR #2629: remove beep when typing cmd-<key> under Mac OS.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed May 13, 2011
1 parent 6892d8a commit 4ee9b8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Fl_cocoa.mm
Expand Up @@ -1694,7 +1694,8 @@ - (BOOL)handleKeyDown:(NSEvent *)theEvent {
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];
Expand Down

0 comments on commit 4ee9b8d

Please sign in to comment.