From 7f6151d57396ccd1578ba559ede45c53c7fa8f06 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 20 Jun 2023 21:11:37 +1000 Subject: [PATCH] [v3] Enable default context menu for certain elements. Use CSS to customise. --- v3/STATUS.md | 8 +- v3/examples/contextmenus/assets/index.html | 26 +++---- v3/examples/contextmenus/main.go | 14 +--- v3/internal/runtime/desktop/contextmenu.js | 78 +++++++++++++------ v3/internal/runtime/desktop/main.js | 5 +- .../runtime/runtime_debug_desktop_darwin.js | 66 +++++++++------- .../runtime/runtime_debug_desktop_linux.js | 66 +++++++++------- .../runtime/runtime_debug_desktop_windows.js | 66 +++++++++------- .../runtime_production_desktop_darwin.js | 2 +- .../runtime_production_desktop_linux.js | 2 +- .../runtime_production_desktop_windows.js | 2 +- 11 files changed, 194 insertions(+), 141 deletions(-) diff --git a/v3/STATUS.md b/v3/STATUS.md index e4cd5ea5e..76aada7fe 100644 --- a/v3/STATUS.md +++ b/v3/STATUS.md @@ -117,7 +117,13 @@ Webview Window Interface Methods |------------------|---------|-------|-----|-------| | OpenContextMenu | Y | | Y | | | On By Default | | | | | -| Control via HTML | | | | | +| Control via HTML | Y | | | | + +The default context menu is enabled by default for all elements that are `contentEditable: true`, `` or `