Merge pull request #3726 from Eugeny/fix-macos-alt-n

Fix Alt-N/E/U handling in macOS, handle Alt-Shift-Letter
This commit is contained in:
Daniel Imms
2022-06-26 09:04:33 -07:00
committed by GitHub
4 changed files with 25 additions and 3 deletions
+2
View File
@@ -13,6 +13,7 @@ function testEvaluateKeyboardEvent(partialEvent: {
shiftKey?: boolean;
metaKey?: boolean;
keyCode?: number;
code?: string;
key?: string;
type?: string;
}, partialOptions: {
@@ -26,6 +27,7 @@ function testEvaluateKeyboardEvent(partialEvent: {
shiftKey: partialEvent.shiftKey || false,
metaKey: partialEvent.metaKey || false,
keyCode: partialEvent.keyCode !== undefined ? partialEvent.keyCode : 0,
code: partialEvent.code || '',
key: partialEvent.key || '',
type: partialEvent.type || ''
};