matches method

bool matches(
  1. KeyMsg msg
)

Returns true if this binding is enabled and msg matches its keys.

Implementation

bool matches(KeyMsg msg) => enabled && keyMatches(msg.key, [this]);