Changing active app with secure keyboard entry enabled

Originator:gnachman
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 Terminal.app by doing `open /System/Applications/Calculator.app` after enabling Terminal > Secure Keyboard Entry.

This has been a source of confusion for users of my app (iTerm2) and probably Terminal.app as well. You can see them flailing around here: https://gitlab.com/gnachman/iterm2/-/issues/10004

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.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!