Contents

modifierFlags

The modifier flags used with the activation key to trigger the command.

Declaration

var modifierFlags: UIKeyModifierFlags { get set }
var modifierFlags: NSEvent.ModifierFlags { get set }

Discussion

This property can be customized within the app to avoid conflicts with existing shortcuts or to enable user personalization. It should accurately represent the modifier keys as used by the app, which the extension can use to display the complete shortcut in its interface.

If no modifiers are desired for the command, the property should be set to 0. This value should be saved and restored as needed by the app.