From 7a2c4cef9a3d4473a075a94a5cda26b73bb4e14c Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 6 Nov 2020 19:42:20 -0600 Subject: [PATCH] Make username/email field the initially selected field when showing the add dialogs. --- .../Accounts/AccountsFeedWranglerWindowController.swift | 2 ++ Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift | 2 ++ Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift | 2 ++ .../Accounts/AccountsReaderAPIWindowController.swift | 2 ++ 4 files changed, 8 insertions(+) diff --git a/Mac/Preferences/Accounts/AccountsFeedWranglerWindowController.swift b/Mac/Preferences/Accounts/AccountsFeedWranglerWindowController.swift index bab79f8de..4adaf8bf3 100644 --- a/Mac/Preferences/Accounts/AccountsFeedWranglerWindowController.swift +++ b/Mac/Preferences/Accounts/AccountsFeedWranglerWindowController.swift @@ -41,6 +41,8 @@ class AccountsFeedWranglerWindowController: NSWindowController { actionButton.title = NSLocalizedString("Create", comment: "Create") signInTextField.stringValue = NSLocalizedString("Sign in to your Feed Wrangler account.", comment: "SignIn") } + + usernameTextField.becomeFirstResponder() } // MARK: API diff --git a/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift b/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift index 56f0e8d42..8f9cce6ef 100644 --- a/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift +++ b/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift @@ -41,6 +41,8 @@ class AccountsFeedbinWindowController: NSWindowController { actionButton.title = NSLocalizedString("Create", comment: "Add Account") signInTextField.stringValue = NSLocalizedString("Sign in to your Feedbin account.", comment: "SignIn") } + + usernameTextField.becomeFirstResponder() } // MARK: API diff --git a/Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift b/Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift index 4ae73333d..fe7682e56 100644 --- a/Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift +++ b/Mac/Preferences/Accounts/AccountsNewsBlurWindowController.swift @@ -41,6 +41,8 @@ class AccountsNewsBlurWindowController: NSWindowController { actionButton.title = NSLocalizedString("Create", comment: "Create") signInTextField.stringValue = NSLocalizedString("Sign in to your NewsBlur account.", comment: "SignIn") } + + usernameTextField.becomeFirstResponder() } // MARK: API diff --git a/Mac/Preferences/Accounts/AccountsReaderAPIWindowController.swift b/Mac/Preferences/Accounts/AccountsReaderAPIWindowController.swift index 1709bb33f..d445afa92 100644 --- a/Mac/Preferences/Accounts/AccountsReaderAPIWindowController.swift +++ b/Mac/Preferences/Accounts/AccountsReaderAPIWindowController.swift @@ -70,6 +70,8 @@ class AccountsReaderAPIWindowController: NSWindowController { } else { actionButton.title = NSLocalizedString("Create", comment: "Create") } + + usernameTextField.becomeFirstResponder() } // MARK: API