Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callout focusWindow, blurWindow API with MacOS native implementation #3766

Merged
merged 30 commits into from
Sep 27, 2024

Conversation

PPatBoyd
Copy link
Contributor

Platforms Impacted

  • iOS
  • macOS
  • win32 (Office)
  • windows
  • android

Description of changes

Adds native functions focusWindow and blurWindow to Callout for proper foreground/focused window management.

On Apple the corresponding concept is the Key Window.
On Win32 the corresponding concept is the Active/Activated Window

Verification

Manual validation with extensions to the Callout test page.

Win32 not actually available with this API as the current behavior of the Win32 View focus API is to forceful make its window take activation, which isn't the appropriate action for the View since it's not aware of Windowing concepts.

Before After
TBD TBD

Pull request checklist

This PR has considered (when applicable):

  • Automated Tests
  • Documentation and examples
  • Keyboard Accessibility
  • Voiceover
  • Internationalization and Right-to-left Layouts

@PPatBoyd PPatBoyd self-assigned this Sep 25, 2024
@PPatBoyd PPatBoyd requested a review from a team as a code owner September 25, 2024 15:35
@rurikoaraki
Copy link
Collaborator

Hey @Saadnajmi, where is the source of truth for apple native code?

@PPatBoyd PPatBoyd changed the title [Draft] Callout focusWindow, blurWindow API with MacOS native implementation Callout focusWindow, blurWindow API with MacOS native implementation Sep 27, 2024
@PPatBoyd PPatBoyd enabled auto-merge (squash) September 27, 2024 02:29
apps/win32/package.json Outdated Show resolved Hide resolved
@PPatBoyd PPatBoyd merged commit 7d1fa1e into microsoft:main Sep 27, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants