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

Commit

Permalink
Add Look Up for selected text in input fields
Browse files Browse the repository at this point in the history
Fixes #6536
  • Loading branch information
Liunkae authored and bsclifton committed Jan 14, 2017
1 parent a5d1601 commit 5d69b6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/contextMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,9 @@ function mainTemplateInit (nodeProps, frame) {
}

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

0 comments on commit 5d69b6d

Please sign in to comment.