diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-12-03 22:14:11 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-12-03 22:14:11 +0100 |
commit | 18040d4152be6fe9ddac16c717d13a903ab8b2b1 (patch) | |
tree | 33514773d24ee9d06849466eaa49200fc0bdd7e3 /src/webview/contextMenu.js | |
parent | fix(App): Fix service request url (diff) | |
download | ferdium-app-18040d4152be6fe9ddac16c717d13a903ab8b2b1.tar.gz ferdium-app-18040d4152be6fe9ddac16c717d13a903ab8b2b1.tar.zst ferdium-app-18040d4152be6fe9ddac16c717d13a903ab8b2b1.zip |
Hide "cut" menu when text is not editable
Diffstat (limited to 'src/webview/contextMenu.js')
-rw-r--r-- | src/webview/contextMenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview/contextMenu.js b/src/webview/contextMenu.js index 195306fda..4f1984a5d 100644 --- a/src/webview/contextMenu.js +++ b/src/webview/contextMenu.js | |||
@@ -35,7 +35,7 @@ const buildMenuTpl = (props, suggestions) => { | |||
35 | id: 'cut', | 35 | id: 'cut', |
36 | role: can('Cut') ? 'cut' : '', | 36 | role: can('Cut') ? 'cut' : '', |
37 | enabled: can('Cut'), | 37 | enabled: can('Cut'), |
38 | visible: !!props.selectionText.trim(), | 38 | visible: !!props.selectionText.trim() && props.isEditable, |
39 | }, { | 39 | }, { |
40 | id: 'copy', | 40 | id: 'copy', |
41 | label: 'Copy', | 41 | label: 'Copy', |