pub fn to_am_broadcasts(
cmd: &InjectionCommand,
) -> Result<Vec<AmBroadcast>, AppError>Expand description
Expand an InjectionCommand into one or more AmBroadcasts.
text / scroll -> one broadcast. key -> one key broadcast. combo ->
a sequence of key broadcasts, each carrying the accumulated modifier
meta_state.
ยงErrors
Returns AppError::validation for an unknown key name, a combo token that
is neither a modifier nor a key, an empty combo, or a missing payload field.