kopia lustrzana https://github.com/c9/core
disable cut in readonly mode
rodzic
5483dd8983
commit
b689854468
|
@ -58,7 +58,7 @@ define(function(require, exports, module) {
|
||||||
isAvailable: checkAvailable,
|
isAvailable: checkAvailable,
|
||||||
exec: function() { cut(); },
|
exec: function() { cut(); },
|
||||||
passEvent: true,
|
passEvent: true,
|
||||||
readOnly: true
|
readOnly: false,
|
||||||
}, plugin);
|
}, plugin);
|
||||||
|
|
||||||
commands.addCommand({
|
commands.addCommand({
|
||||||
|
@ -66,7 +66,8 @@ define(function(require, exports, module) {
|
||||||
bindKey: { mac: "Command-C", win: "Ctrl-C" },
|
bindKey: { mac: "Command-C", win: "Ctrl-C" },
|
||||||
isAvailable: checkAvailable,
|
isAvailable: checkAvailable,
|
||||||
exec: function(editor, args) { copy(null, args.data); },
|
exec: function(editor, args) { copy(null, args.data); },
|
||||||
passEvent: true
|
passEvent: true,
|
||||||
|
readOnly: true,
|
||||||
}, plugin);
|
}, plugin);
|
||||||
|
|
||||||
commands.addCommand({
|
commands.addCommand({
|
||||||
|
@ -75,7 +76,7 @@ define(function(require, exports, module) {
|
||||||
isAvailable: checkAvailable,
|
isAvailable: checkAvailable,
|
||||||
exec: function() { paste(); },
|
exec: function() { paste(); },
|
||||||
passEvent: true,
|
passEvent: true,
|
||||||
readOnly: true
|
readOnly: false,
|
||||||
}, plugin);
|
}, plugin);
|
||||||
|
|
||||||
commands.addCommand({
|
commands.addCommand({
|
||||||
|
|
Ładowanie…
Reference in New Issue