From 128c4d45dfe3c3a8266530fe737b83a29b47c2ff Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Thu, 21 Nov 2024 17:21:57 +0200 Subject: [PATCH] Add a separator to the editor's context menu running under Electron --- src/public/app/menus/electron_context_menu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/public/app/menus/electron_context_menu.js b/src/public/app/menus/electron_context_menu.js index a74691508..b66930d6b 100644 --- a/src/public/app/menus/electron_context_menu.js +++ b/src/public/app/menus/electron_context_menu.js @@ -106,6 +106,8 @@ function setupContextMenu() { // Replace the placeholder with the real search keyword. let searchUrl = searchEngineUrl.replace("{keyword}", encodeURIComponent(params.selectionText)); + items.push({title: "----"}); + items.push({ enabled: editFlags.canPaste, title: `Search for "${shortenedSelection}" with ${searchEngineName}`,