From 85cb42fc8ddbc6e9ced55032b8d75f8eb5fd5130 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Sat, 9 Sep 2023 18:18:14 +0200 Subject: [PATCH 1/2] Fix manifest keyboard type --- Shared/Settings/LocationsSettings.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Shared/Settings/LocationsSettings.swift b/Shared/Settings/LocationsSettings.swift index 907d2cff..d2a80517 100644 --- a/Shared/Settings/LocationsSettings.swift +++ b/Shared/Settings/LocationsSettings.swift @@ -50,12 +50,13 @@ struct LocationsSettings: View { @ViewBuilder var settings: some View { Section(header: SettingsHeader(text: "Locations Manifest".localized())) { TextField("URL", text: $instancesManifest) - Button("Reload manifest", action: loadCountries) - .disabled(instancesManifest.isEmpty) #if !os(macOS) - .keyboardType(.webSearch) + .keyboardType(.URL) + .autocapitalization(.none) #endif .disableAutocorrection(true) + Button("Reload manifest", action: loadCountries) + .disabled(instancesManifest.isEmpty) } .padding(.bottom, 4) From 0822c7b93a2f683fa2836a757226dda69796fb40 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Sat, 9 Sep 2023 18:18:45 +0200 Subject: [PATCH 2/2] Fix username keyboard input --- Shared/Settings/AccountForm.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Shared/Settings/AccountForm.swift b/Shared/Settings/AccountForm.swift index 72ab0593..6e3d8ec2 100644 --- a/Shared/Settings/AccountForm.swift +++ b/Shared/Settings/AccountForm.swift @@ -81,6 +81,10 @@ struct AccountForm: View { @ViewBuilder var formFields: some View { TextField("Username", text: $username) + #if !os(macOS) + .autocapitalization(.none) + #endif + .disableAutocorrection(true) SecureField("Password", text: $password) #if os(tvOS)