electron: add basic context menu for inspect element (#20723)

This commit is contained in:
Brendan Allan
2026-04-02 17:41:26 +00:00
committed by GitHub
parent 92e820fdc8
commit 966d9cfa41
3 changed files with 51 additions and 14 deletions
@@ -8,6 +8,9 @@ import type { Event } from "electron"
import { app, BrowserWindow, dialog } from "electron"
import pkg from "electron-updater"
import contextMenu from "electron-context-menu"
contextMenu({ showSaveImageAs: true, showLookUpSelection: false, showSearchWithGoogle: false })
const APP_NAMES: Record<string, string> = {
dev: "OpenCode Dev",
beta: "OpenCode Beta",