diff --git a/src/ViewerTest/ViewerTest_ViewerCommands_1.mm b/src/ViewerTest/ViewerTest_ViewerCommands_1.mm index f39dc12026..86576cce22 100644 --- a/src/ViewerTest/ViewerTest_ViewerCommands_1.mm +++ b/src/ViewerTest/ViewerTest_ViewerCommands_1.mm @@ -26,8 +26,11 @@ #if !defined(MAC_OS_X_VERSION_10_12) || (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12) // replacements for macOS versions before 10.12 - #define NSEventModifierFlagControl NSControlKeyMask - #define NSEventModifierFlagShift NSShiftKeyMask + #define NSEventModifierFlagControl NSControlKeyMask + #define NSEventModifierFlagShift NSShiftKeyMask + #define NSEventModifierFlagOption NSAlternateKeyMask + #define NSEventModifierFlagCommand NSCommandKeyMask + #define NSEventModifierFlagFunction NSFunctionKeyMask #endif //! Custom Cocoa view to handle events