Skip to content

Conversation

@yaira2
Copy link
Member

@yaira2 yaira2 commented Aug 7, 2025

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

  • For Feature: Omnibar #16029
  • Fix 'Search' action doesn't work when triggered from the Command Palette
  • Fix Switching to a different window while the flyout is open closes it, but it reopens when refocusing the window

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Opened Files ...
  2. ...

@yaira2 yaira2 requested review from 0x5bfa and Copilot and removed request for Copilot August 7, 2025 03:54
@yaira2 yaira2 added the ready for review Pull requests that are ready for review label Aug 7, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where the Omnibar AutoSuggestBox would regain focus and show suggestions popup when the window was refocused. The fix adds a workaround to restore focus to the previously focused element when the AutoSuggestBox loses focus due to the specific scenario of window focus changes.

Key Changes

  • Added logic to restore focus to the previously focused element when AutoSuggestBox loses focus in specific conditions
  • Included detailed comment explaining the workaround for window refocus behavior

@yaira2 yaira2 changed the title Code Quality: Fixed issue where Omnibar regained focus when window was refocused Code Quality: Fixed Omnibar issues Aug 7, 2025
Copy link
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@yaira2 yaira2 merged commit d609eb8 into main Aug 7, 2025
9 checks passed
@yaira2 yaira2 deleted the ya/OmnibarFocus branch August 7, 2025 14:18
@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants