-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Qian Qian "Cubik" <[email protected]>
- Loading branch information
1 parent
4fd97c7
commit bc2dac5
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
patches/ungoogled-chromium/macos/fix-keyboard-code-conversion.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) { |