Contents

specialKey

The code associated with a function key or other special key.

Declaration

var specialKey: NSEvent.SpecialKey? { get }

Discussion

When someone presses a special function key, this property contains the code for that key. For other keys, this property is nil.

See Also

Getting key event information