From cc4fb15d18bdb24f5767004948f46803a893edfc Mon Sep 17 00:00:00 2001 From: Liunkae Date: Thu, 5 Jan 2017 14:03:20 -0600 Subject: [PATCH] Add Look Up for selected text in input fields Fixes #6536 --- js/contextMenus.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/contextMenus.js b/js/contextMenus.js index 32d0ddcc90b..a1e179719e3 100644 --- a/js/contextMenus.js +++ b/js/contextMenus.js @@ -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) {