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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -