Skip to content

Commit

Permalink
fix: tell macOS we handled all keydown events
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Mar 8, 2024
1 parent d8d4a0d commit 91f338b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Uno.UI.Runtime.Skia.MacOS/MacOSWindowHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ private static int OnRawKeyDown(nint handle, VirtualKey key, VirtualKeyModifiers
}
var args = CreateArgs(key, mods, scanCode);
keyDown.Invoke(window!, args);
return args.Handled ? 1 : 0;
// we tell macOS it's always handled as WinUI does not mark as handled some keys that would make it beep in common cases
return 1;
}
catch (Exception e)
{
Expand Down

0 comments on commit 91f338b

Please sign in to comment.