Skip to content

Commit

Permalink
Hide "cut" menu when text is not editable
Browse files Browse the repository at this point in the history
#1144
  • Loading branch information
adlk committed Dec 3, 2018
1 parent 7751c17 commit 18040d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webview/contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 18040d4

Please sign in to comment.