Add a separator to the editor's context menu running under Electron

This commit is contained in:
Adorian Doran 2024-11-21 17:21:57 +02:00
parent 8658f9e6d3
commit 128c4d45df

View File

@ -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}`,