super_hot_key 0.9.0-dev.5 copy "super_hot_key: ^0.9.0-dev.5" to clipboard
super_hot_key: ^0.9.0-dev.5 copied to clipboard

Allows registering global (system-wide) hot keys. Supported on macOS and Windows.

Features #

System-wide hotkeys for macOS and Windows.

Usage #

final hotKey = await HotKey.create(
  definition: HotKeyDefinition(
    key: PhysicalKeyboardKey.minus,
    alt: true,
    meta: true,
  ),
  callback: () {
    print('hot key pressed');
  },
);

// .. Meta + Alt + Minus will trigger the callback regardless of whether
// the application is in focus

// Unregister the hot key
hotKey.dispose();

Additional information #

Hot keys are registered on physical keys. To convert between physical and logical keys you can use the super_keyboard_layout package.

16
likes
130
pub points
80%
popularity

Publisher

verified publishernativeshell.dev

Allows registering global (system-wide) hot keys. Supported on macOS and Windows.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, super_keyboard_layout, super_native_extensions

More

Packages that depend on super_hot_key