mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Fixed handling of first responder status to the document view
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9151 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6998d2fc69
commit
68d59304dd
1 changed files with 16 additions and 2 deletions
|
@ -532,12 +532,26 @@
|
|||
/* Managing responder chain */
|
||||
- (BOOL) acceptsFirstResponder
|
||||
{
|
||||
return _documentView != nil;
|
||||
if (_documentView == nil)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
return [_documentView acceptsFirstResponder];
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL) becomeFirstResponder
|
||||
{
|
||||
return (_documentView != nil) ? [_documentView becomeFirstResponder] : NO;
|
||||
if (_documentView == nil)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
return [_window makeFirstResponder: _documentView];
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue