Skip to content

Commit 18040d4

Browse files
committed
Hide "cut" menu when text is not editable
#1144
1 parent 7751c17 commit 18040d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webview/contextMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const buildMenuTpl = (props, suggestions) => {
3535
id: 'cut',
3636
role: can('Cut') ? 'cut' : '',
3737
enabled: can('Cut'),
38-
visible: !!props.selectionText.trim(),
38+
visible: !!props.selectionText.trim() && props.isEditable,
3939
}, {
4040
id: 'copy',
4141
label: 'Copy',

0 commit comments

Comments
 (0)