[PR #6129] [MERGED] [PM-27869] fix/[PM-26241] : draw out keyboard on talkback click #86179

Closed
opened 2026-05-22 23:22:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/6129
Author: @dev-sharma3624
Created: 11/6/2025
Status: Merged
Merged: 11/18/2025
Merged by: @david-livefront

Base: mainHead: fix/PM-26241-draw-out-keyboard-on-talkback-click


📝 Commits (2)

  • 27017ce fixPM-26241: draw out keyboard on talkback click
  • da46c76 Fix tests that assumed cursor position at start in textField

📊 Changes

3 files changed (+14 additions, -4 deletions)

View changed files

📝 app/src/test/kotlin/com/x8bit/bitwarden/ui/tools/feature/generator/GeneratorScreenTest.kt (+2 -1)
📝 app/src/test/kotlin/com/x8bit/bitwarden/ui/vault/feature/addedit/VaultAddEditScreenTest.kt (+1 -1)
📝 ui/src/main/kotlin/com/bitwarden/ui/platform/components/field/BitwardenTextField.kt (+11 -2)

📄 Description

🎟️ Tracking

https://github.com/bitwarden/android/issues/5951

📔 Objective

  • Fixes Bug: PM-26241
  • The Problem: The on-screen keyboard failed to appear when TalkBack users selected a text field on the "edit item" screen.
  • The Solution: This PR ensures that the text field correctly requests and receives focus when activated via TalkBack, which properly triggers the keyboard to display.
  • Impact: Restores the ability for screen reader users to edit item details, ensuring the feature is accessible.

Test Updates

  • Context: The fix for the TalkBack focus behavior revealed that two unit tests were brittle. They were built on an incorrect assumption that text would always be inserted at the start of the field.

  • Solution: This PR also includes a commit to update these tests, making them more robust and aligning them with the new, correct cursor behavior.

📸 Screenshots

before.webm

after.webm

Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/6129 **Author:** [@dev-sharma3624](https://github.com/dev-sharma3624) **Created:** 11/6/2025 **Status:** ✅ Merged **Merged:** 11/18/2025 **Merged by:** [@david-livefront](https://github.com/david-livefront) **Base:** `main` ← **Head:** `fix/PM-26241-draw-out-keyboard-on-talkback-click` --- ### 📝 Commits (2) - [`27017ce`](https://github.com/bitwarden/android/commit/27017cea29fdddc776f4b51f480d8905aed40e0d) fix[PM-26241]: draw out keyboard on talkback click - [`da46c76`](https://github.com/bitwarden/android/commit/da46c7610d94aed6eaea985bae5b4024c569fe66) Fix tests that assumed cursor position at start in textField ### 📊 Changes **3 files changed** (+14 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `app/src/test/kotlin/com/x8bit/bitwarden/ui/tools/feature/generator/GeneratorScreenTest.kt` (+2 -1) 📝 `app/src/test/kotlin/com/x8bit/bitwarden/ui/vault/feature/addedit/VaultAddEditScreenTest.kt` (+1 -1) 📝 `ui/src/main/kotlin/com/bitwarden/ui/platform/components/field/BitwardenTextField.kt` (+11 -2) </details> ### 📄 Description ## 🎟️ Tracking <!-- Paste the link to the Jira or GitHub issue or otherwise describe / point to where this change is coming from. --> https://github.com/bitwarden/android/issues/5951 ## 📔 Objective <!-- Describe what the purpose of this PR is, for example what bug you're fixing or new feature you're adding. --> * **Fixes Bug:** [PM-26241] * **The Problem:** The on-screen keyboard failed to appear when TalkBack users selected a text field on the "edit item" screen. * **The Solution:** This PR ensures that the text field correctly requests and receives focus when activated via TalkBack, which properly triggers the keyboard to display. * **Impact:** Restores the ability for screen reader users to edit item details, ensuring the feature is accessible. ### Test Updates * **Context:** The fix for the TalkBack focus behavior revealed that two unit tests were brittle. They were built on an incorrect assumption that text would always be inserted at the **start** of the field. * **Solution:** This PR also includes a commit to update these tests, making them more robust and aligning them with the new, correct cursor behavior. ## 📸 Screenshots <!-- Required for any UI changes; delete if not applicable. Use fixed width images for better display. --> [before.webm](https://github.com/user-attachments/assets/5ca3b6ba-4b4d-4285-9140-47b21c35ec30) [after.webm](https://github.com/user-attachments/assets/dd7fd4f0-32fa-4b2c-a54e-b399cf10f4c7) ## ⏰ Reminders before review - Contributor guidelines followed - All formatters and local linters executed and passed - Written new unit and / or integration tests where applicable - Protected functional changes with optionality (feature flags) - Used internationalization (i18n) for all UI strings - CI builds passed - Communicated to DevOps any deployment requirements - Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team ## 🦮 Reviewer guidelines <!-- Suggested interactions but feel free to use (or not) as you desire! --> - 👍 (`:+1:`) or similar for great changes - 📝 (`:memo:`) or ℹ️ (`:information_source:`) for notes or general info - ❓ (`:question:`) for questions - 🤔 (`:thinking:`) or 💭 (`:thought_balloon:`) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion - 🎨 (`:art:`) for suggestions / improvements - ❌ (`:x:`) or ⚠️ (`:warning:`) for more significant problems or concerns needing attention - 🌱 (`:seedling:`) or ♻️ (`:recycle:`) for future improvements or indications of technical debt - ⛏ (`:pick:`) for minor or nitpick changes [PM-26241]: https://bitwarden.atlassian.net/browse/PM-26241?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-22 23:22:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#86179