Clean up synonyms, key code generation. (#138192)

## Description

This cleans up how synonyms are calculated, and adds a reverse mapping from pseudo keys to the real keys they are synonyms of.

Updates the `layout_goals.json` to include the "Space" key, since that was added in the engine without updating the generation configuration.
This commit is contained in:
Greg Spencer
2023-11-13 12:13:00 -08:00
committed by GitHub
parent 5980342ead
commit 1b9cab7138
7 changed files with 105 additions and 70 deletions

View File

@@ -79,6 +79,7 @@ void main() {
expect(output, contains('modifierFlagToKeyCode'));
expect(output, contains('kCapsLockPhysicalKey'));
expect(output, contains('kCapsLockLogicalKey'));
expect(output, contains('kLayoutGoals'));
checkCommonOutput(output);
});
test('Generate Keycodes for iOS', () {