Set different keyboard settings for two different users or applications on Mac?
The Use F1, F2, etc. keys as standard function keys setting is applicable on a per user basis.



If the two users in your case have different user accounts, it will be very easy to enable/disable this setting for appropriate users.

It is not natively possible to configure this setting on a per app basis though.