mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:10:47 +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
194ea34554
commit
1ecf4c080a
1 changed files with 11 additions and 7 deletions
|
@ -38,8 +38,6 @@
|
||||||
#include <AppKit/NSApplication.h>
|
#include <AppKit/NSApplication.h>
|
||||||
#include <AppKit/NSCursor.h>
|
#include <AppKit/NSCursor.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@implementation NSTextField
|
@implementation NSTextField
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -164,9 +162,15 @@ id _nsTextfieldCellClass = nil;
|
||||||
//
|
//
|
||||||
- (void) selectText: (id)sender
|
- (void) selectText: (id)sender
|
||||||
{
|
{
|
||||||
if ([[self window] makeFirstResponder: self])
|
// TODO
|
||||||
[cell selectText: sender];
|
/*
|
||||||
[self setNeedsDisplay: YES];
|
if (window)
|
||||||
|
{
|
||||||
|
if ([window makeFirstResponder: self])
|
||||||
|
[cell selectText: sender];
|
||||||
|
[self setNeedsDisplay: YES];
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -367,8 +371,8 @@ fprintf(stderr, " TextField mouseDown --- ");
|
||||||
// only for it.
|
// only for it.
|
||||||
if (key_code == 0x0d)
|
if (key_code == 0x0d)
|
||||||
{
|
{
|
||||||
[window selectKeyViewFollowingView: self];
|
|
||||||
[self sendAction: [cell action] to: [cell target]];
|
[self sendAction: [cell action] to: [cell target]];
|
||||||
|
[window selectKeyViewFollowingView: self];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,7 +427,7 @@ fprintf(stderr, " TextField mouseDown --- ");
|
||||||
{
|
{
|
||||||
if ([self isSelectable] || [self isEditable])
|
if ([self isSelectable] || [self isEditable])
|
||||||
{
|
{
|
||||||
[cell selectText: self];
|
[self selectText: self];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue