isActivatedBy static method
- @Deprecated('Call accepts on the activator instead. ' 'This feature was deprecated after v3.16.0-15.0.pre.')
- ShortcutActivator activator,
- 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);
}