Loading...
question macOS swift November 9, 2021 How to detect Fn key press in Swift?

You can override the flagsChanged() method of NSViewController and have your code like below to detect Fn key press and release in macOS: