Skip to content

PM-29851: feat: The interactive border should only be displayed if the focus was granted by a keyboard - #7468

Merged
david-livefront merged 1 commit into
mainfrom
PM-44005-focus-border-by-keyboard
Oct 12, 2026
Merged

david-livefront merged 1 commit into
mainfrom
PM-44005-focus-border-by-keyboard

Conversation

@david-livefront

@david-livefront david-livefront commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

๐ŸŽŸ๏ธ Tracking

PM-44005
PM-29851

๐Ÿ“” Objective

This PR updates the interactive border to only be displayed if the focus was granted by a keyboard.

@david-livefront
david-livefront requested a review from a team as a code owner October 9, 2026 18:21
@github-actions github-actions Bot added app:password-manager Bitwarden Password Manager app context app:authenticator Bitwarden Authenticator app context t:feature Change Type - Feature Development labels Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

๐Ÿค– Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR adds InteractionSource.collectIsFocusedByKeyboardAsState(), which mirrors Compose's collectIsFocusedAsState() but only counts a FocusInteraction.Focus toward the focused state when InputModeManager reports InputMode.Keyboard. Modifier.interactiveBorder now uses it, so the focus border no longer appears when focus comes from touch. The Focus/Unfocus bookkeeping matches the upstream implementation: an Unfocus for a touch-originated focus that was never tracked is a no-op removal, so state stays consistent. The change applies to every interactiveBorder consumer across the :ui components and the EnvironmentSelector in :app. No issues were found.

@david-livefront
david-livefront force-pushed the PM-44005-focus-border-by-keyboard branch from d55f9c3 to 4081c10 Compare October 9, 2026 18:22
@codecov

codecov Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codecov Report

โŒ Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.
โœ… Project coverage is 86.78%. Comparing base (807b5e0) to head (4081c10).

Files with missing lines Patch % Lines
.../platform/base/util/InteractionSourceExtensions.kt 81.81% 0 Missing and 2 partials โš ๏ธ
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7468      +/-   ##
==========================================
- Coverage   86.78%   86.78%   -0.01%     
==========================================
  Files         894      895       +1     
  Lines       65615    65626      +11     
  Branches     9373     9376       +3     
==========================================
+ Hits        56947    56956       +9     
  Misses       5191     5191              
- Partials     3477     3479       +2     
Flag Coverage ฮ”
app-data 18.64% <0.00%> (-0.01%) โฌ‡๏ธ
app-ui-auth-tools 18.66% <83.33%> (+0.01%) โฌ†๏ธ
app-ui-platform 16.50% <83.33%> (+0.01%) โฌ†๏ธ
app-ui-vault 26.89% <83.33%> (+<0.01%) โฌ†๏ธ
authenticator 6.04% <83.33%> (+0.01%) โฌ†๏ธ
lib-core-network-bridge 4.11% <58.33%> (+<0.01%) โฌ†๏ธ
lib-data-ui 1.25% <83.33%> (+0.01%) โฌ†๏ธ

Flags with carried forward coverage won't be shown. Click here to find out more.

โ˜” View full report in Codecov by Harness.
๐Ÿ“ข Have feedback on the report? Share it here.

๐Ÿš€ New features to boost your workflow:
  • โ„๏ธ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • ๐Ÿ“ฆ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@david-livefront david-livefront changed the title PM-44005: feat: The interactive border should only be displayed if the focus was granted by a keyboard PM-29851: feat: The interactive border should only be displayed if the focus was granted by a keyboard Oct 9, 2026
@david-livefront

Copy link
Copy Markdown
Collaborator Author

Thanks @andrebispo5

@david-livefront
david-livefront added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 87978dd Oct 12, 2026
30 checks passed
@david-livefront
david-livefront deleted the PM-44005-focus-border-by-keyboard branch October 12, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app:authenticator Bitwarden Authenticator app context app:password-manager Bitwarden Password Manager app context t:feature Change Type - Feature Development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants