From ada1d4671ccf02e98250df63d4339137597d453d Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 18 Mar 2021 18:31:49 +0500 Subject: [PATCH] prvent default action --- static/filemanager/js/codeMirror.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/filemanager/js/codeMirror.js b/static/filemanager/js/codeMirror.js index fce0aefa6..e3e70298d 100644 --- a/static/filemanager/js/codeMirror.js +++ b/static/filemanager/js/codeMirror.js @@ -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}); } });