Changing active app with secure keyboard entry enabled

Number:rdar://FB9781125 Date Originated:11/25/2021
Status:Open Resolved:
Product:AppKit Product Version:12
Classification: Reproducible:Always
In macOS 12, an application cannot make itself active when another app is active and has secure keyboard entry turned on. This is easily verified in by doing `open /System/Applications/` after enabling Terminal > Secure Keyboard Entry.

This has been a source of confusion for users of my app (iTerm2) and probably as well. You can see them flailing around here:

My request is for a notification to be sent to the active app (provided it enabled secure keyboard entry) that another app has requested key focus but has been denied. This would make it possible to notify the user that they might need to turn off secure keyboard input.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!