keys

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func Run(args []string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL