Crash when pressing modifier keys in a menu

Hi Jules,

When building with an old sdk that does not know [NSEvent modifiersFlag], this function:

[code]ModifierKeys ModifierKeys::getCurrentModifiersRealtime() noexcept
if ([NSEvent respondsToSelector: @selector (modifierFlags)])
NSViewComponentPeer::updateModifiers ([NSEvent modifierFlags]);

return NSViewComponentPeer::currentModifiers;

ends up calling NSViewComponentPeer::updateModifiers(NSEvent *) instead of NSViewComponentPeer::updateModifiers(NSUInteger) . Adding an explicit cast fixes that:

Wow! Nice job spotting that, thanks!