bug fix: wp manager

This commit is contained in:
Usman Nasir
2021-03-19 23:01:41 +05:00
parent b6ab29d992
commit 88924952aa
2 changed files with 20 additions and 12 deletions

View File

@@ -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;