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
Post a Comment