Use CustomEvent instead of postMessage to keep the user gesture.
Show "create shortcut" menu on Mac.