osx - Is there any way to capture global key presses in Mac OS using Swift -


is there way capture global key presses (even when application isn't active) in mac os using swift?

thanks in advance.

yes, can use nsevent add global event monitor. checkout swift 3 example here: https://stackoverflow.com/a/40509620/1791525


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -