mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Tiny updates for changings in NSTextFieldCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5161 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
710a5a92da
commit
ad361d87ca
1 changed files with 11 additions and 7 deletions
|
@ -38,8 +38,6 @@
|
|||
#include <AppKit/NSApplication.h>
|
||||
#include <AppKit/NSCursor.h>
|
||||
|
||||
|
||||
|
||||
@implementation NSTextField
|
||||
|
||||
//
|
||||
|
@ -164,9 +162,15 @@ id _nsTextfieldCellClass = nil;
|
|||
//
|
||||
- (void) selectText: (id)sender
|
||||
{
|
||||
if ([[self window] makeFirstResponder: self])
|
||||
[cell selectText: sender];
|
||||
[self setNeedsDisplay: YES];
|
||||
// TODO
|
||||
/*
|
||||
if (window)
|
||||
{
|
||||
if ([window makeFirstResponder: self])
|
||||
[cell selectText: sender];
|
||||
[self setNeedsDisplay: YES];
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -367,8 +371,8 @@ fprintf(stderr, " TextField mouseDown --- ");
|
|||
// only for it.
|
||||
if (key_code == 0x0d)
|
||||
{
|
||||
[window selectKeyViewFollowingView: self];
|
||||
[self sendAction: [cell action] to: [cell target]];
|
||||
[window selectKeyViewFollowingView: self];
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -423,7 +427,7 @@ fprintf(stderr, " TextField mouseDown --- ");
|
|||
{
|
||||
if ([self isSelectable] || [self isEditable])
|
||||
{
|
||||
[cell selectText: self];
|
||||
[self selectText: self];
|
||||
return YES;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue