shortcut_atlas 0.1.0 copy "shortcut_atlas: ^0.1.0" to clipboard
shortcut_atlas: ^0.1.0 copied to clipboard

Enterprise keyboard shortcuts for Flutter desktop: bind keys to actions and reveal a contextual cheat-sheet HUD by holding Alt.

0.1.0 #

Initial release.

  • Remappable keybindingsKeymap layers factory < admin < user overrides with a revision notifier; re-bindings flow live to dispatch, the HUD, the palette, and the menu. KeyRecorder captures a chord ("press a key to rebind"), and a pluggable KeymapStore (+ ActivatorCodec) makes them persistent with no required dependency.

  • Menu bar bridgeShortcutMenuBar / ShortcutMenu build a Material MenuBar from the same ShortcutCommands. Items show each command's effective chord (display-only, so they never double-fire) and run the same behavior.

  • HUD polish — a titled header and a footer that counts the shortcuts and points at the palette, plus AtlasThemeData.minimal / .accent presets alongside the default glass.

  • Command palette (Cmd/Ctrl+K) — a searchable, keyboard-navigable (//Enter/Esc) overlay over the same command registry. Snapshots the active commands at open time, so it works even though it steals focus.

  • Platform awarenessAtlasPlatform (desktop/apple/web detection, the primary-modifier label, and a reserved-chord checker). The HUD and palette restrict to desktop/web by default (AtlasConfig.restrictToDesktop).

  • Debug diagnostics — warns about duplicate activators in a scope and chords the OS/browser is likely to intercept.

  • ShortcutCommand / command() — one declarative descriptor (keys + label + group + behavior) that is the single source of truth for dispatch and the HUD.

  • ShortcutScope — compiles commands into real Flutter Shortcuts/Actions/ Focus, so dispatch, precedence, and contextual enable/disable are the framework's job.

  • ShortcutAtlas — root widget (install via MaterialApp(builder:)) hosting the controller, the global command action, and the HUD overlay.

  • Hold-Alt HUD — a contextual, translucent cheat-sheet revealed by holding Alt (peek-then-act), listing the shortcuts live for the focused screen.

  • PlatformActivator / primary() — Ctrl on Windows/Linux, Cmd on macOS, with per-OS glyph rendering (⌃⌥⇧⌘ vs Ctrl/Alt/Shift).

  • Auto-guard — bare single-key shortcuts (e.g. tab nav via 1/2/3) are automatically disabled while a text field has focus, so typing still works.

  • AtlasActionButton — a button whose onPressed and a keyboard shortcut share one Intent/Action and one enablement gate.

  • AtlasThemeData — theme the HUD via a ThemeExtension.

  • Testing seam: AltHoldClock / FakeAltHoldClock for deterministic HUD tests.

0
likes
160
points
5
downloads

Documentation

API reference

Publisher

verified publisherluminest.io

Weekly Downloads

Enterprise keyboard shortcuts for Flutter desktop: bind keys to actions and reveal a contextual cheat-sheet HUD by holding Alt.

Homepage
Repository (GitHub)
View/report issues

Topics

#keyboard #shortcuts #desktop #accessibility #productivity

License

MIT (license)

Dependencies

flutter

More

Packages that depend on shortcut_atlas