[Proposal] Configurable option to auto-focus search bar and open keyboard on app launch/unlock (Android, iOS, Browser Extensions) #23850
yottabit42
started this conversation in
Password Manager
Replies: 1 comment
|
✨ Thank you for your code contribution proposal! While the Bitwarden team reviews your submission, we encourage you to check out our contribution guidelines. Please ensure that your code contribution includes a detailed description of what you would like to contribute, along with any relevant screenshots and links to existing feature requests. This information helps us gather feedback from the community and Bitwarden team members before you start writing code. To keep discussions focused, posts that do not include a proposal for a code contribution will be removed.
Thank you for contributing to Bitwarden! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Introduce an opt-in toggle under Settings (e.g., Settings > Vault > Auto-focus search on unlock) across the Bitwarden clients (Android, iOS, and Browser Extension). When enabled, opening and unlocking the client will automatically focus the vault search input and immediately invoke the software keyboard.
Motivation & Community Feedback
Many users with large vaults (hundreds of credentials across personal and organizational collections) locate items exclusively via search rather than scrolling or browsing folders. For these users, having to perform a second physical tap on the search bar every time the app unlocks creates unnecessary daily friction.
This proposal addresses community demand discussed here:
Proposed UX & Design
On mobile devices, immediately raising the soft keyboard covers roughly 50% of the screen, hiding recent items, favorites, and navigation controls. To prevent disrupting users who browse visually, this behavior must remain strictly opt-in.
Auto-focus search on unlockAutomatically open search and show keyboard when unlocking the vault.Platform Breakdown & Technical Feasibility
1. Android (
bitwarden/android)isAutoFocusSearchOnUnlockEnabledtoSettingsDiskSourceand expose it viaSettingsRepository.BitwardenSwitchrow inVaultSettingsScreen/OtherScreen.RootNavState.VaultUnlockedinRootNavScreen, if the preference is enabled, immediately route toSearchRoute(SearchType.Vault.All).BitwardenSearchTopAppBar, the ComposeFocusRequesteris already wired (focusRequester.requestFocus()in aLaunchedEffect), which natively requests input focus and raises the Android IME software keyboard.2. iOS (
bitwarden/ios).searchablefocus state orbecomeFirstResponder()) to activate the search bar and invoke the iOS virtual keyboard.3. Browser Extension (
bitwarden/clients)Contribution & Next Steps
I am prepared to submit the code changes and unit tests for the Android client via a Pull Request (PR) against
bitwarden/android:mainfollowing the project's code style (bitwarden-style.xml) and Contributor Agreement.I would appreciate feedback from the Bitwarden maintainers on:
All reactions