Documentation
¶
Overview ¶
Package keys implements the `glutter-gen keys` subcommand, which generates the key tables (XKB keycode to Flutter key ids).
Flutter: no counterpart.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run executes `glutter-gen keys [-reference dir] [-out file] [-services-out file] [-web-out file]` with the arguments that follow the subcommand name. It reads Flutter's key data (physical_key_data.g.json, logical_key_data.g.json, layout_goals.json, synonyms.json and web_logical_location_mapping.json under dev/tools/gen_keycodes/data of the Flutter checkout in the reference directory) and writes the Go tables of the platform layer to the output file, the key constants of package services to the services file, and the tables of the web platform (the names of KeyboardEvent.code and KeyboardEvent.key) to the web file. An empty file name skips that file; the services file is written by default only when the platform file is, and the web file only when it is named.
Flutter: dev/tools/gen_keycodes
Types ¶
This section is empty.