Skip to content

InputMap.Map method (1 of 3)

Maps the given sequences to a command; the first becomes the primary/display sequence.

public InputMap Map(Command command, KeySequence primarySequence,
params KeySequence[] alternativeSequences)

Maps a sequence to a local callback that is not part of command presentation.

public InputMap Map(KeySequence sequence, Action execute, Func<bool>? canExecute = null)

Maps the given sequences to a command invoked with data as its argument, so one command can answer to several sequences that differ only in the value they pass.

public InputMap Map(Command command, object? data, KeySequence primarySequence,
params KeySequence[] alternativeSequences)