Fixes from n.pero

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4989 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-10-12 12:59:10 +00:00
parent 1a40a9e06b
commit 4009a089e7
4 changed files with 43 additions and 9 deletions

View file

@ -2090,7 +2090,8 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
theView = _nextKeyView;
while (1)
{
if ([theView acceptsFirstResponder] || (theView == nil))
if ([theView acceptsFirstResponder] || (theView == nil)
|| (theView == self))
return theView;
theView = [theView nextKeyView];
@ -2122,7 +2123,8 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
theView = _previousKeyView;
while (1)
{
if ([theView acceptsFirstResponder] || (theView == nil))
if ([theView acceptsFirstResponder] || (theView == nil)
|| (theView == self))
return theView;
theView = [theView previousKeyView];