feedback-assistant / reports

Open collection of Apple Feedback Assistant reports

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FB13561621: Frontmost application cannot receive keyboard events after opening Spotlight and some other application above it

p0deje opened this issue · comments

  • Date: 2024-01-26
  • Resolution: Open
  • Area: Spotlight
  • OS: macOS 14.3
  • Type: Incorrect/Unexpected Behavior

Description

If we have an application that can open above Spotlight without deactivating it first, it can then cause keyboard events not being sent to the original application that was focused before opening Spotlight.

To reproduce, here are the steps when using the Maccy.app (https://apps.apple.com/us/app/maccy/id1527619437, https://github.com/p0deje/Maccy):

  1. Install Maccy.
  2. Enable “Avoid taking application focus” in Maccy advanced preferences. This makes Maccy popup behave like a regular NSMenu instance.
  3. Switch to Safari and focus on a text field.
  4. Popup Spotlight (I have ⌘Space shortcut for this).
  5. Popup Maccy (I have ⇧⌘C shortcut for this).
  6. Press Escape, this would hide Maccy.
  7. Press Escape, this would hide Spotlight.
  8. Try to type something in Safari.

Expected - You can type in Safari.
Actual - No keyboard events are sent to Safari so you can’t type anything. The only way around would be to switch to a different app and switch back to Safari. This restores keyboard events working.

I believe it’s a Spotlight bug because the same issue reproduces using the Homerow.app (https://www.homerow.app), so it’s not something specific to Maccy.