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] [-android-out file] [-windows-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, and the tables of the Android platform (scan codes and key codes) to the Android file, and the tables of the Windows platform (scan codes, virtual keys and the layout goals) to the Windows file. An empty file name skips that file; the services file is written by default only when the platform file is, and the web, Android and Windows files only when they are named.
Flutter: dev/tools/gen_keycodes
Types ¶
This section is empty.