From 80ea4bcde6f2f5a767e4fb0ef9d26fcea18be5d8 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 7 May 2011 13:45:42 +0000 Subject: Restoring correct keyboard handling under Mac OS X 10.5. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 4896cf127..b4dc04316 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -827,7 +827,7 @@ static void cocoaMouseHandler(NSEvent *theEvent) } @interface FLTextView : NSTextView -// this subclass is needed under OS X <= 10.4 but not under >= 10.5 where the base class is enough +// this subclass is needed under OS X <= 10.5 but not under >= 10.6 where the base class is enough { } @end @@ -1215,7 +1215,7 @@ extern "C" { } - (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)client { - if (fl_mac_os_version < 100500) { + if (fl_mac_os_version < 100600) { static FLTextView *view = nil; if (!view) { NSRect rect={{0,0},{20,20}}; -- cgit v1.2.3