bug fix: wp manager
This commit is contained in:
parent
b6ab29d992
commit
88924952aa
|
|
@ -87,12 +87,16 @@ fileManager.controller('editFileCtrl', function ($scope, $http, $window) {
|
|||
|
||||
cm.setValue(response.data.fileContents);
|
||||
cm.setSize(null, 800);
|
||||
cm.on("keyup", function (cm, event) {
|
||||
if (!cm.state.completionActive && event.keyCode === 9) {
|
||||
event.preventDefault();
|
||||
CodeMirror.commands.autocomplete(cm, null, {completeSingle: false});
|
||||
}
|
||||
});
|
||||
|
||||
// cm.on("keyup", function (cm, event) {
|
||||
// if(event.keyCode === 9){
|
||||
// event.preventDefault();
|
||||
// event.stopPropagation();
|
||||
// }
|
||||
// if (!cm.state.completionActive && event.keyCode === 9) {
|
||||
// CodeMirror.commands.autocomplete(cm, null, {completeSingle: false});
|
||||
// }
|
||||
// });
|
||||
|
||||
} else {
|
||||
$scope.errorMessageEditor = false;
|
||||
|
|
|
|||
|
|
@ -87,12 +87,16 @@ fileManager.controller('editFileCtrl', function ($scope, $http, $window) {
|
|||
|
||||
cm.setValue(response.data.fileContents);
|
||||
cm.setSize(null, 800);
|
||||
cm.on("keyup", function (cm, event) {
|
||||
if (!cm.state.completionActive && event.keyCode === 9) {
|
||||
event.preventDefault();
|
||||
CodeMirror.commands.autocomplete(cm, null, {completeSingle: false});
|
||||
}
|
||||
});
|
||||
|
||||
// cm.on("keyup", function (cm, event) {
|
||||
// if(event.keyCode === 9){
|
||||
// event.preventDefault();
|
||||
// event.stopPropagation();
|
||||
// }
|
||||
// if (!cm.state.completionActive && event.keyCode === 9) {
|
||||
// CodeMirror.commands.autocomplete(cm, null, {completeSingle: false});
|
||||
// }
|
||||
// });
|
||||
|
||||
} else {
|
||||
$scope.errorMessageEditor = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue