Skip to content

Commit

Permalink
fbsource//xplat/graphics/igl/public/shell/mac
Browse files Browse the repository at this point in the history
Reviewed By: boguscoder

Differential Revision: D68655752

fbshipit-source-id: 284f66df528bcf189d4b5486dd50acaadfe9e662
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Jan 25, 2025
1 parent 58e1a33 commit d92220b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/mac/ViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ - (NSPoint)locationForEvent:(NSEvent*)event {

static uint32_t getModifiers(NSEvent* event) {
uint32_t modifiers = igl::shell::KeyEventModifierNone;
NSUInteger flags = [event modifierFlags] & NSEventModifierFlagDeviceIndependentFlagsMask;
const NSUInteger flags = [event modifierFlags] & NSEventModifierFlagDeviceIndependentFlagsMask;

if (flags & NSEventModifierFlagShift) {
modifiers |= igl::shell::KeyEventModifierShift;
Expand Down

0 comments on commit d92220b

Please sign in to comment.