isActivatedBy static method

  1. @Deprecated('Call accepts on the activator instead. ' 'This feature was deprecated after v3.16.0-15.0.pre.')
bool isActivatedBy(
  1. ShortcutActivator activator,
  2. KeyEvent event
)

Returns true if the event and current HardwareKeyboard state would cause this ShortcutActivator to be activated.

Implementation

@Deprecated(
  'Call accepts on the activator instead. '
  'This feature was deprecated after v3.16.0-15.0.pre.',
)
static bool isActivatedBy(ShortcutActivator activator, KeyEvent event) {
  return activator.accepts(event, HardwareKeyboard.instance);
}