Skip to content

Commit

Permalink
disable cut in readonly mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Mar 30, 2018
1 parent 5483dd8 commit b689854
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/c9.ide.clipboard/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,16 @@ define(function(require, exports, module) {
isAvailable: checkAvailable,
exec: function() { cut(); },
passEvent: true,
readOnly: true
readOnly: false,
}, plugin);

commands.addCommand({
name: "copy",
bindKey: { mac: "Command-C", win: "Ctrl-C" },
isAvailable: checkAvailable,
exec: function(editor, args) { copy(null, args.data); },
passEvent: true
passEvent: true,
readOnly: true,
}, plugin);

commands.addCommand({
Expand All @@ -75,7 +76,7 @@ define(function(require, exports, module) {
isAvailable: checkAvailable,
exec: function() { paste(); },
passEvent: true,
readOnly: true
readOnly: false,
}, plugin);

commands.addCommand({
Expand Down

0 comments on commit b689854

Please sign in to comment.