Skip to content

Commit

Permalink
Add a separator to the editor's context menu running under Electron
Browse files Browse the repository at this point in the history
  • Loading branch information
adoriandoran committed Nov 21, 2024
1 parent 8658f9e commit 128c4d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/public/app/menus/electron_context_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 128c4d4

Please sign in to comment.