prvent default action

This commit is contained in:
Usman Nasir
2021-03-18 18:31:11 +05:00
parent 0b5ed9925f
commit 75423cd7ce

View File

@@ -89,6 +89,7 @@ fileManager.controller('editFileCtrl', function ($scope, $http, $window) {
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});
}
});