hammerspoon2-docs
    Preparing search index...

    Function secureInputPID

    • Returns the process ID of an app that has Secure Input turned on, to help track down which app is blocking keystrokes.

      macOS doesn't document this value. When more than one process has Secure Input on, only one of them is reported, and it isn't always the one that turned it on most recently, so treat it as a starting point rather than a definitive answer.

      Returns number | null

      A process ID, or null if Secure Input is off or macOS doesn't say which process has it