The keycodes listed in the article are wrong. F4 is 118; F5 is 96. Not sure why it worked for the author. For any interested, a full list of macOS keycodes can be found here: http://macbiblioblog.blogspot.com/2014/12/key-codes-for-func...
No comments yet.