Browse Source

Small 10.5 compatibility tweak.

tags/2021-05-28
jules 14 years ago
parent
commit
da7d612591
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 3
- 1
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -958,7 +958,9 @@ void NSViewComponentPeer::updateKeysDown (NSEvent* ev, bool isKeyDown)
ModifierKeys ModifierKeys::getCurrentModifiersRealtime() noexcept ModifierKeys ModifierKeys::getCurrentModifiersRealtime() noexcept
{ {
NSViewComponentPeer::updateModifiers ([NSEvent modifierFlags]);
if ([NSEvent respondsToSelector: @selector (modifierFlags)])
NSViewComponentPeer::updateModifiers ([NSEvent modifierFlags]);
return NSViewComponentPeer::currentModifiers; return NSViewComponentPeer::currentModifiers;
} }


Loading…
Cancel
Save