mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Don’t call OakSetupKeyViewLoop with just a single view
In this case, the function is a no-op.
This commit is contained in:
@@ -216,7 +216,6 @@ static NSArray* const kObservedKeyPaths = @[ @"arrayController.arrangedObjects.p
|
||||
[LicenseManager.sharedInstance decorateWindow:self.window];
|
||||
|
||||
OakAddAutoLayoutViewsToSuperview(@[ self.layoutView ], self.window.contentView);
|
||||
OakSetupKeyViewLoop(@[ self.layoutView ]);
|
||||
self.window.initialFirstResponder = self.textView;
|
||||
|
||||
[self.window.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[view]|" options:0 metrics:nil views:@{ @"view": self.layoutView }]];
|
||||
|
||||
@@ -67,7 +67,6 @@ static SymbolChooserItem* CreateItem (OakDocument* document, text::pos_t const&
|
||||
|
||||
[self updateScrollViewInsets];
|
||||
|
||||
OakSetupKeyViewLoop(@[ self.searchField ]);
|
||||
self.window.initialFirstResponder = self.searchField;
|
||||
}
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user