mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Call abortEditing on outline view instead of cancelOperation
I’m not sure if it is necessary to manually refocus the outline view after aborting the field editor, does seem like a bug and will most likely not be present for view-based outline views.
This commit is contained in:
@@ -358,7 +358,7 @@ struct expansion_state_t
|
||||
{
|
||||
NSLog(@"%s refresh while editing row", sel_getName(_cmd));
|
||||
_pendingEditURL = [[_outlineView itemAtRow:[_outlineView editedRow]] url];
|
||||
[_outlineView cancelOperation:self];
|
||||
[_outlineView abortEditing];
|
||||
}
|
||||
|
||||
[_outlineView beginUpdates];
|
||||
|
||||
@@ -231,16 +231,6 @@
|
||||
[super draggedImage:anImage endedAt:aPoint operation:aDragOperation];
|
||||
}
|
||||
|
||||
// ========================
|
||||
// = Field Editor Support =
|
||||
// ========================
|
||||
|
||||
- (void)cancelOperation:(id)sender
|
||||
{
|
||||
if([self abortEditing])
|
||||
[[self window] makeFirstResponder:self]; // Restore focus
|
||||
}
|
||||
|
||||
// ==================
|
||||
// = Mouse Tracking =
|
||||
// ==================
|
||||
|
||||
Reference in New Issue
Block a user