You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/tools/gen_keycodes/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,18 +5,18 @@ the `LogicalKeyboardKey` and `PhysicalKeyboardKey` classes.
5
5
6
6
It generates multiple files across Flutter. For framework, it generates
7
7
8
-
*[`keyboard_key.dart`](../../../packages/flutter/lib/src/services/keyboard_key.dart), which contains the definition and list of logical keys and physical keys; and
9
-
*[`keyboard_maps.dart`](../../../packages/flutter/lib/src/services/keyboard_maps.dart), which contains platform-specific immutable maps used for the `RawKeyboard` API.
8
+
*[`keyboard_key.g.dart`](../../../packages/flutter/lib/src/services/keyboard_key.g.dart), which contains the definition and list of logical keys and physical keys; and
9
+
*[`keyboard_maps.g.dart`](../../../packages/flutter/lib/src/services/keyboard_maps.g.dart), which contains platform-specific immutable maps used for the `RawKeyboard` API.
10
10
11
11
For engine, it generates one key mapping file for each platform, as well as some
12
12
files for testing purposes.
13
13
14
14
It draws information from various source bases, including online
15
15
repositories, and manual mapping in the `data` subdirectory. It incorporates
16
16
this information into a giant list of physical keys
Copy file name to clipboardExpand all lines: dev/tools/gen_keycodes/data/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@
4
4
5
5
| File name | Explanation |
6
6
| ---- | ---- |
7
-
|[`physical_key_data.json`](physical_key_data.json)| Contains the merged physical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. |
8
-
|[`logical_key_data.json`](logical_key_data.json)| Contains the merged logical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. |
7
+
|[`physical_key_data.g.json`](physical_key_data.g.json)| Contains the merged physical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. |
8
+
|[`logical_key_data.g.json`](logical_key_data.g.json)| Contains the merged logical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. |
9
9
|[`supplemental_hid_codes.inc`](supplemental_hid_codes.inc)| A supplementary HID list on top of Chromium's list of HID codes for extra physical keys. Certain entries may also overwrite Chromium's corresponding entries. |
10
10
|[`supplemental_key_data.inc`](supplemental_key_data.inc)| A supplementary key list on top of Chromium's list of keys for extra logical keys.|
11
11
|[`chromium_modifiers.json`](chromium_modifiers.json)| Maps the web's `key` for modifier keys to the names of the logical keys for these keys' left and right variations.This is used when generating logical keys to provide independent values for sided logical keys. Web uses the same `key` for modifier keys of different sides, but Flutter's logical key model treats them as different keys.|
@@ -17,8 +17,8 @@
17
17
18
18
| File name | Explanation |
19
19
| ---- | ---- |
20
-
|[`keyboard_key.tmpl`](keyboard_key.tmpl)| The template for `keyboard_key.dart`. |
21
-
|[`keyboard_maps.tmpl`](keyboard_maps.tmpl)| The template for `keyboard_maps.dart`. |
20
+
|[`keyboard_key.tmpl`](keyboard_key.tmpl)| The template for `keyboard_key.g.dart`. |
21
+
|[`keyboard_maps.tmpl`](keyboard_maps.tmpl)| The template for `keyboard_maps.g.dart`. |
0 commit comments