mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:30:39 +00:00
Post the NSControlTextDidEndEditingNotification *after* actually ending
editing :-) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13979 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
763c6093fa
commit
d024336615
3 changed files with 14 additions and 15 deletions
|
@ -280,8 +280,7 @@ static Class textFieldCellClass;
|
|||
if ([self isSelectable] == NO)
|
||||
return;
|
||||
|
||||
// This could happen if someone pressed the mouse
|
||||
// on the borders
|
||||
/* This could happen if someone pressed the mouse on the borders. */
|
||||
if (_text_object)
|
||||
return;
|
||||
|
||||
|
@ -306,6 +305,7 @@ static Class textFieldCellClass;
|
|||
delegate: self
|
||||
event: theEvent];
|
||||
}
|
||||
|
||||
- (BOOL) acceptsFirstMouse: (NSEvent *)aEvent
|
||||
{
|
||||
return YES;
|
||||
|
@ -453,14 +453,14 @@ static Class textFieldCellClass;
|
|||
|
||||
[self validateEditing];
|
||||
|
||||
[_cell endEditing: [aNotification object]];
|
||||
|
||||
d = [NSDictionary dictionaryWithObject: [aNotification object]
|
||||
forKey: @"NSFieldEditor"];
|
||||
[nc postNotificationName: NSControlTextDidEndEditingNotification
|
||||
object: self
|
||||
userInfo: d];
|
||||
|
||||
[_cell endEditing: [aNotification object]];
|
||||
|
||||
textMovement = [[aNotification userInfo] objectForKey: @"NSTextMovement"];
|
||||
if (textMovement)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue