mirror of
https://github.com/textmate/textmate.git
synced 2026-01-21 04:38:13 -05:00
Only “force” selection search when document window is key
Since the find dialog itself will call orderFrontFindPanel: when selecting the first item in the “in” pop-up (this is required to have it show ⌘F as key equivalent) we need to avoid changing search scope to “selection” for this case.
This commit is contained in:
@@ -1761,7 +1761,7 @@ namespace
|
||||
find.projectIdentifier = self.identifier;
|
||||
|
||||
NSInteger mode = [sender respondsToSelector:@selector(tag)] ? [sender tag] : find_tags::in_document;
|
||||
if(mode == find_tags::in_document && self.textView.hasMultiLineSelection)
|
||||
if(mode == find_tags::in_document && [self.window isKeyWindow] && self.textView.hasMultiLineSelection)
|
||||
mode = find_tags::in_selection;
|
||||
|
||||
switch(mode)
|
||||
|
||||
Reference in New Issue
Block a user