Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5466 from Liunkae/search-for-input-field
Browse files Browse the repository at this point in the history
Add "Search for" for selected text in input fields
  • Loading branch information
bbondy committed Nov 7, 2016
2 parents 3cc4b73 + ff09a39 commit fc2690e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/contextMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,10 @@ function mainTemplateInit (nodeProps, frame) {
if (editableItems.length > 0) {
template.push(...editableItems, CommonMenu.separatorMenuItem)
}

if (isTextSelected) {
template.push(searchSelectionMenuItem(nodeProps.selectionText), CommonMenu.separatorMenuItem)
}
} else if (isTextSelected) {
if (isDarwin) {
template.push(showDefinitionMenuItem(nodeProps.selectionText),
Expand Down

0 comments on commit fc2690e

Please sign in to comment.