Skip to content

Commit

Permalink
first focus is server text field
Browse files Browse the repository at this point in the history
  • Loading branch information
kishikawakatsumi committed Sep 2, 2024
1 parent 22b63d8 commit 0f8947a
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 0f8947a

Please sign in to comment.