Post

Replies

Boosts

Views

Activity

Reply to Accessibility Permission In Sandbox For Keyboard
Hello, Your understanding is correct about those goals, and I understand I should use CGEventTap for this. However, in addition to doing so, I would like my app to be able to post keyboard events (specifically only shortcuts) as well. So for a simple example let's say I want to 'remap' the command key to command+option+s (just for example sake). My app should detect when command is pressed, and then be able to "post" the event for the shortcut command+option+s. I hope this clears things up. Thank you for the help!
Topic: UI Frameworks SubTopic: General Tags:
Jun ’25
Reply to Accessibility Permission In Sandbox For Keyboard
Thank you for your reply. I understand that I should be using CGEventTap to try and monitor the input I need. I am still confused though about if it is possible to trigger actions like shortcuts from my app. For example, if I want to implement a functionality where my app can programmatically trigger a global shortcut, is this possible? When I say global, I mean being able to trigger the shortcut such that it works in whatever app is active, not just my app. I think the way to do this is through the .tapCreate in CGEventTap, but I don't think that can be accessed with just input monitoring permission in sandbox. Would it be possible to request an exception to allow something like this inside my app? Thanks again!
Topic: UI Frameworks SubTopic: General Tags:
Jun ’25