mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
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:
+2
-1
@@ -1694,7 +1694,8 @@ static void q_set_window_title(NSWindow *nsw, const char * name ) {
|
|||||||
break;
|
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
|
// Then we can let the OS have a stab at it and see if it thinks it
|
||||||
// should result in some text
|
// should result in some text
|
||||||
NSText *edit = [[theEvent window] fieldEditor:YES forObject:nil];
|
NSText *edit = [[theEvent window] fieldEditor:YES forObject:nil];
|
||||||
|
|||||||
Reference in New Issue
Block a user