Don’t call OakSetupKeyViewLoop with just a single view

In this case, the function is a no-op.
This commit is contained in:
Allan Odgaard
2020-05-25 09:22:14 +07:00
parent 344ed58819
commit df3b4bb807
2 changed files with 0 additions and 2 deletions

View File

@@ -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 }]];

View File

@@ -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;