Skip to content

Commit

Permalink
Merge pull request #115 from kishikawakatsumi/example2
Browse files Browse the repository at this point in the history
first focus is server text field
  • Loading branch information
kishikawakatsumi authored Sep 2, 2024
2 parents 131000b + 0f8947a commit ccb8c61
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class ConnectServerViewController: NSViewController {
usernameField.delegate = self
passwordField.delegate = self
}

override func viewWillAppear() {
super.viewWillAppear()
view.window?.makeFirstResponder(serverField)
}
}

extension ConnectServerViewController: NSTextFieldDelegate {
Expand Down

0 comments on commit ccb8c61

Please sign in to comment.