avoidContextMenu function

void avoidContextMenu()

Implementation

void avoidContextMenu() {
  if (kIsWeb) {
    html.document.body!.addEventListener('contextmenu', (event) => event.preventDefault());
  }
}