Update edit target on tab

This commit is contained in:
Matthias Neeracher 2011-09-13 05:12:59 +02:00
parent ec27e877b0
commit dfb0d60b4c

View File

@ -921,9 +921,11 @@ const float kSemiFloor = -1.0f*kLineH;
switch ([[[note userInfo] objectForKey:@"NSTextMovement"] intValue]) { switch ([[[note userInfo] objectForKey:@"NSTextMovement"] intValue]) {
case NSTabTextMovement: case NSTabTextMovement:
[editable moveToNext]; [editable moveToNext];
[self updateEditTarget];
break; break;
case NSBacktabTextMovement: case NSBacktabTextMovement:
[editable moveToPrev]; [editable moveToPrev];
[self updateEditTarget];
break; break;
case NSReturnTextMovement: case NSReturnTextMovement:
[self setEditTarget:nil]; [self setEditTarget:nil];