File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 99 <objects >
1010 <customObject id =" -2" userLabel =" File's Owner" customClass =" DocumentationWindowController" customModule =" DevDocs" customModuleProvider =" target" >
1111 <connections >
12+ <outlet property =" contentSearchField" destination =" nuW-bv-dAc" id =" VBO-Nb-W9g" />
1213 <outlet property =" documentationViewController" destination =" f61-KY-zVD" id =" SGK-n1-U1U" />
1314 <outlet property =" window" destination =" QvC-M9-y7g" id =" LfB-8c-kAm" />
1415 </connections >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import WebKit
33
44class DocumentationWindowController : NSWindowController {
55
6+ @IBOutlet weak var contentSearchField : NSSearchField ?
67 @IBOutlet weak var documentationViewController : DocumentationViewController ?
78
89 var documentation : Documentation !
@@ -75,7 +76,7 @@ class DocumentationWindowController: NSWindowController {
7576 return
7677 }
7778
78- // TODO: focus search field
79+ window . makeFirstResponder ( contentSearchField )
7980 }
8081}
8182
You can’t perform that action at this time.
0 commit comments