diff --git a/management/server/webui/src/main/webapp/assets/js/plugins/vtortola.ng-terminal.js b/management/server/webui/src/main/webapp/assets/js/plugins/vtortola.ng-terminal.js index 111af026aa8..3f25520abf5 100755 --- a/management/server/webui/src/main/webapp/assets/js/plugins/vtortola.ng-terminal.js +++ b/management/server/webui/src/main/webapp/assets/js/plugins/vtortola.ng-terminal.js @@ -323,8 +323,15 @@ }); consoleView.on('click', function () { + var range = window.getSelection().getRangeAt(0); + target[0].focus(); + terminal.toggleClass('terminal-focused', true); + + window.getSelection().removeAllRanges(); + window.getSelection().addRange(range); + }); target.on("blur", function (e) {