Skip to content
Permalink
Browse files

Hide "cut" menu when text is not editable

  • Loading branch information
adlk committed Dec 3, 2018
1 parent 7751c17 commit 18040d4152be6fe9ddac16c717d13a903ab8b2b1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/webview/contextMenu.js
@@ -35,7 +35,7 @@ const buildMenuTpl = (props, suggestions) => {
id: 'cut',
role: can('Cut') ? 'cut' : '',
enabled: can('Cut'),
visible: !!props.selectionText.trim(),
visible: !!props.selectionText.trim() && props.isEditable,
}, {
id: 'copy',
label: 'Copy',

0 comments on commit 18040d4

Please sign in to comment.
You can’t perform that action at this time.