keybindings

command
v3.0.0-beta.19 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 2 Imported by: 0

README

Keybindings Example

This simple example demonstrates how to use keybindings in your application. Run the example and press Ctrl/CMD+Shift+C to center the focused window.

Running on macOS with private APIs

This example calls OpenDevTools(). On macOS, opening the inspector from code requires the private_mac_apis build tag. Without it, that call is a no-op; the rest of the example still runs.

From this example directory, run:

go run -tags private_mac_apis .

Omit -tags private_mac_apis to run with public macOS APIs only. The tag has no effect on Windows, Linux, iOS, or Android. See the shared private API guide for production builds and fallback details.

Running the example

To run the example, simply run the following command:

go run .

Status

Platform Status
Mac Working
Windows Working
Linux

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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