mirror of
https://github.com/textmate/textmate.git
synced 2026-01-20 04:08:04 -05:00
Make window key in actions that show file browser field editor
It is possible to bring up menus for inactive windows and e.g. select Rename or Duplicate.
This commit is contained in:
@@ -248,6 +248,7 @@ static NSSet* VisibleItems (NSOutlineView* outlineView, FSItem* root, NSMutableS
|
||||
if(![pendingEditURL isEqual:[[outlineView itemAtRow:i] url]])
|
||||
continue;
|
||||
|
||||
[[outlineView window] makeKeyWindow];
|
||||
[outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:i] byExtendingSelection:NO];
|
||||
[outlineView editColumn:0 row:i withEvent:nil select:YES];
|
||||
self.pendingEditURL = nil;
|
||||
|
||||
@@ -172,7 +172,10 @@
|
||||
- (void)performEditSelectedRow:(id)sender
|
||||
{
|
||||
if([self numberOfSelectedRows] == 1)
|
||||
{
|
||||
[[self window] makeKeyWindow];
|
||||
[self editColumn:0 row:[self selectedRow] withEvent:nil select:YES];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)keyDown:(NSEvent*)theEvent
|
||||
|
||||
Reference in New Issue
Block a user