From fca9f92702dac5eeccb686d46727fa44d323637c Mon Sep 17 00:00:00 2001 From: spacedandy-agents-simplex <342056592+spacedandy-agents-simplex@users.noreply.github.com> Date: Wed, 21 Oct 2026 00:59:34 +0000 Subject: [PATCH] ios: don't autocorrect or capitalize the search fields, so the Search key searches what was typed The keyboard replaced "cinews" with "Cinema" when the Search key submitted it, so the directory searched for the wrong text; names and links typed there are not words. Run: 011-search-redesign, slice 3 (fix found by the simulator run) --- apps/ios/Shared/Views/ChatList/ChatListView.swift | 2 ++ apps/ios/Shared/Views/NewChat/NewChatMenuButton.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/ios/Shared/Views/ChatList/ChatListView.swift b/apps/ios/Shared/Views/ChatList/ChatListView.swift index 5c2b51f156..02af7a75ec 100644 --- a/apps/ios/Shared/Views/ChatList/ChatListView.swift +++ b/apps/ios/Shared/Views/ChatList/ChatListView.swift @@ -872,6 +872,8 @@ struct ChatListSearchBar: View { .disabled(searchShowingSimplexLink) .focused($searchFocussed) .frame(maxWidth: .infinity) + .autocorrectionDisabled(true) + .textInputAutocapitalization(.never) .submitLabel(.search) .onSubmit(runDirectorySearch) if connectProgressManager.showConnectProgress != nil { diff --git a/apps/ios/Shared/Views/NewChat/NewChatMenuButton.swift b/apps/ios/Shared/Views/NewChat/NewChatMenuButton.swift index 10b3faaead..3891748ef1 100644 --- a/apps/ios/Shared/Views/NewChat/NewChatMenuButton.swift +++ b/apps/ios/Shared/Views/NewChat/NewChatMenuButton.swift @@ -439,6 +439,8 @@ struct ContactsListSearchBar: View { .disabled(searchShowingSimplexLink) .focused($searchFocussed) .frame(maxWidth: .infinity) + .autocorrectionDisabled(true) + .textInputAutocapitalization(.never) .submitLabel(onSearch == nil ? .return : .search) .onSubmit { onSearch?() } if connectProgressManager.showConnectProgress != nil {