Hi,

What is the correct way to detect the Fn key in combination with other keys, 
given an NSEvent?

NSFunctionKeyMask is set in the modifier flags for the Fn key, but it is also 
set for a range of "function keys", such as arrow keys, PageUp/Down, Home, End, 
Delete, Help, etc., and it seems impossible to distinguish, e.g., PageUp from 
Fn-PageUp.

I noticed that my laptop keyboard will let me distinguish Fn-UpArrow from 
UpArrow via NSNumericPadKeyMask, but that's about it (it won't apply to other 
function keys present on external keyboards).

According to [1], kCGEventFlagMaskSecondaryFn won't let me do this either.

The attendant question then is how to correctly implement something like 
NSEvent's charactersIgnoringModifiers, which does not interpret the Fn key as a 
modifier either (Fn-LeftArrow still gives me Home). 

Thanks
 - David

[1] 
http://lists.apple.com/archives/quartz-dev/2008/Jan/msg00019.html_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to