Function-Key Unicode Values
Constants for reserved keyboard function keys that correspond to unicode characters.
Overview
These constants correspond to unicode characters in the range (0xF700–0xF8FF) and are values you can use with the characters and charactersIgnoringModifiers properties of the event. You can also use them in some parameters in the keyEvent(with:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifiers:isARepeat:keyCode:) method of the event.
Note that the system handles some function keys at a lower level and your app never sees them. Examples include the Volume Up key, Volume Down key, Volume Mute key, Eject key, and Function key found on many Macs.
Topics
Getting Common Control Keys
Getting the Navigation-Related Keys
NSUpArrowFunctionKeyNSDownArrowFunctionKeyNSLeftArrowFunctionKeyNSRightArrowFunctionKeyNSPageUpFunctionKeyNSPageDownFunctionKeyNSHomeFunctionKeyNSEndFunctionKeyNSPrevFunctionKeyNSNextFunctionKey
Getting Special Behavior Keys
NSBeginFunctionKeyNSBreakFunctionKeyNSClearDisplayFunctionKeyNSClearLineFunctionKeyNSDeleteCharFunctionKeyNSDeleteLineFunctionKeyNSExecuteFunctionKeyNSFindFunctionKeyNSHelpFunctionKeyNSInsertFunctionKeyNSInsertCharFunctionKeyNSInsertLineFunctionKeyNSMenuFunctionKeyNSModeSwitchFunctionKeyNSPauseFunctionKeyNSPrintFunctionKeyNSPrintScreenFunctionKeyNSRedoFunctionKeyNSResetFunctionKeyNSScrollLockFunctionKeyNSSelectFunctionKeyNSStopFunctionKeyNSSysReqFunctionKeyNSSystemFunctionKeyNSUndoFunctionKeyNSUserFunctionKey
Getting the Function Keys
NSF1FunctionKeyNSF2FunctionKeyNSF3FunctionKeyNSF4FunctionKeyNSF5FunctionKeyNSF6FunctionKeyNSF7FunctionKeyNSF8FunctionKeyNSF9FunctionKeyNSF10FunctionKeyNSF11FunctionKeyNSF12FunctionKeyNSF13FunctionKeyNSF14FunctionKeyNSF15FunctionKeyNSF16FunctionKeyNSF17FunctionKeyNSF18FunctionKeyNSF19FunctionKeyNSF20FunctionKeyNSF21FunctionKeyNSF22FunctionKeyNSF23FunctionKeyNSF24FunctionKeyNSF25FunctionKeyNSF26FunctionKeyNSF27FunctionKeyNSF28FunctionKeyNSF29FunctionKeyNSF30FunctionKeyNSF31FunctionKeyNSF32FunctionKeyNSF33FunctionKeyNSF34FunctionKeyNSF35FunctionKey