NodeFlowShortcutManager<T> constructor

NodeFlowShortcutManager<T>({
  1. Map<LogicalKeySet, String>? customShortcuts,
})

Creates a shortcut manager with optional custom shortcuts.

Parameters:

  • customShortcuts: Optional map of keyboard shortcuts to action IDs that will be added to or override default shortcuts

Example:

final manager = NodeFlowShortcutManager(
  customShortcuts: {
    LogicalKeySet(LogicalKeyboardKey.keyQ, LogicalKeyboardKey.meta): 'quit',
  },
);

Implementation

NodeFlowShortcutManager({Map<LogicalKeySet, String>? customShortcuts})
  : _shortcuts = {..._defaultShortcuts, ...?customShortcuts};