mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 16:46:52 +08:00
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
This commit is contained in:
+2
-2
@@ -827,7 +827,7 @@ static void cocoaMouseHandler(NSEvent *theEvent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
@interface FLTextView : NSTextView
|
@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
|
@end
|
||||||
@@ -1215,7 +1215,7 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
- (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)client
|
- (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)client
|
||||||
{
|
{
|
||||||
if (fl_mac_os_version < 100500) {
|
if (fl_mac_os_version < 100600) {
|
||||||
static FLTextView *view = nil;
|
static FLTextView *view = nil;
|
||||||
if (!view) {
|
if (!view) {
|
||||||
NSRect rect={{0,0},{20,20}};
|
NSRect rect={{0,0},{20,20}};
|
||||||
|
|||||||
Reference in New Issue
Block a user