hammerspoon2-docs
    Preparing search index...

    Function checkEventPosting

    • Check if the app may post synthetic keyboard and mouse events, which hs.eventtap needs to send keystrokes and clicks.

      macOS keeps this separate from Accessibility, so checkAccessibility() can return true while posted events are silently dropped. System Settings lists it with Accessibility (System & App Protection Override on macOS 27.3 and later). macOS may not update the result until Hammerspoon 2 is restarted.

      Returns boolean

      true if permission is granted, false otherwise