emitShortcutActivated method

void emitShortcutActivated(
  1. ShortcutId id,
  2. String accelerator
)

Implementation

void emitShortcutActivated(ShortcutId id, String accelerator) {
  final acceleratorNative = accelerator.toNativeUtf8().cast<ffi.Char>();
  c.native_shortcut_manager_emit_shortcut_activated(id, acceleratorNative);
  pkg_ffi.calloc.free(acceleratorNative);
}