Modify NSEvent to send a different key than the one that was pressed
You can’t do this with the NSEvent API, but you can do this with a CGEventTap. You can create an active event tap and register a callback that receives a CGEventRef and can modify it (if necessary) and return it to modify the actual event stream. EDIT Here’s a simple program that, while running, replaces … Read more