From ff102bdbf47c500db36ca54a3491dbde175ade93 Mon Sep 17 00:00:00 2001 From: Ramez Ragaa Date: Tue, 26 Nov 2024 18:50:09 +0200 Subject: [PATCH] fix(macos): add key modifiers to pointer event args --- .../UnoNativeMac/UnoNativeMac/UNOWindow.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m b/src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m index 6087ed76042d..38a397fdf581 100644 --- a/src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m +++ b/src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m @@ -865,6 +865,7 @@ - (void)sendEvent:(NSEvent *)event { memset(&data, 0, sizeof(struct MouseEventData)); data.eventType = mouse; data.inContact = inContact; + data.mods = get_modifiers(event.modifierFlags); if ([self getPositionFrom:event x:&data.x y:&data.y]) { #if false // check subtype for most mouse events