mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 11:51:47 +00:00
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:
parent
4f9d846b9c
commit
c27b641394
8 changed files with 117 additions and 114 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue