diff --git a/patches/series b/patches/series index 09f0fd6..d3aff88 100644 --- a/patches/series +++ b/patches/series @@ -11,3 +11,4 @@ ungoogled-chromium/macos/fix-runTsc-log-info.patch ungoogled-chromium/macos/no-unknown-warnings.patch ungoogled-chromium/macos/mark-remap_alloc-used.patch ungoogled-chromium/macos/re2-include-fix +ungoogled-chromium/macos/fix-keyboard-code-conversion.patch diff --git a/patches/ungoogled-chromium/macos/fix-keyboard-code-conversion.patch b/patches/ungoogled-chromium/macos/fix-keyboard-code-conversion.patch new file mode 100644 index 0000000..f8cec6e --- /dev/null +++ b/patches/ungoogled-chromium/macos/fix-keyboard-code-conversion.patch @@ -0,0 +1,14 @@ +--- a/ui/events/keycodes/keyboard_code_conversion_mac.mm ++++ b/ui/events/keycodes/keyboard_code_conversion_mac.mm +@@ -48,6 +48,11 @@ + return base::IsValidCodepoint(c) && !base::IsUnicodeControl(c); + } + ++#if (__MAC_OS_X_VERSION_MAX_ALLOWED < 150000) ++constexpr int kVK_RightCommand = 0x36; ++constexpr int kVK_ContextualMenu = 0x6E; ++#endif ++ + bool IsKeypadOrNumericKeyEvent(NSEvent* event) { + // Check that this is the type of event that has a keyCode. + switch (event.type) {