Varioyus patches by N. Pero

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4992 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-10-12 15:05:37 +00:00
parent 4f9d846b9c
commit c27b641394
8 changed files with 117 additions and 114 deletions

View file

@ -2131,35 +2131,6 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
}
}
- (void) keyDown: (NSEvent *)theEvent
{
unsigned int key_code = [theEvent keyCode];
// If this is a TAB or TAB+SHIFT event, we handle it
if (key_code == 0x09)
{
if ([theEvent modifierFlags] & NSShiftKeyMask)
[window selectKeyViewPrecedingView: self];
else
[window selectKeyViewFollowingView: self];
return;
}
// Otherwise, let the event go on in the responder chain
[super keyDown: theEvent];
}
- (void) keyUp: (NSEvent *)theEvent
{
unsigned int key_code = [theEvent keyCode];
// We handle (ignoring them) TAB/SHIFT+TAB events
if (key_code == 0x09)
return;
else // All other events go on in the chain
[super keyUp: theEvent];
}
/*
* Dragging
*/