Skip to content

Commit a32b407

Browse files
committed
Fix pasting not working in runtime browser
1 parent c3da7e1 commit a32b407

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Classes/GlobalStateExplorers/RuntimeBrowser/TBKeyPathSearchController.m

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ @interface TBKeyPathSearchController ()
4242
@property (nonatomic) NSArray<NSArray<FLEXMethod *> *> *classesToMethods;
4343
@end
4444

45-
#warning TODO there's no code to handle refreshing the table after manually appending ".bar" to "Bundle"
4645
@implementation TBKeyPathSearchController
4746

4847
+ (instancetype)delegate:(id<TBKeyPathSearchControllerDelegate>)delegate {
@@ -56,8 +55,14 @@ + (instancetype)delegate:(id<TBKeyPathSearchControllerDelegate>)delegate {
5655

5756
delegate.tableView.delegate = controller;
5857
delegate.tableView.dataSource = controller;
59-
delegate.searchController.searchBar.delegate = controller;
60-
delegate.searchController.searchBar.keyboardType = UIKeyboardTypeWebSearch;
58+
59+
UISearchBar *searchBar = delegate.searchController.searchBar;
60+
searchBar.delegate = controller;
61+
searchBar.keyboardType = UIKeyboardTypeWebSearch;
62+
searchBar.autocorrectionType = UITextAutocorrectionTypeNo;
63+
if (@available(iOS 11, *)) {
64+
searchBar.smartInsertDeleteType = UITextSmartInsertDeleteTypeNo;
65+
}
6166

6267
return controller;
6368
}

0 commit comments

Comments
 (0)