From dc6bf90eef73dc2b9e0ddfb668368d095ba3a6b7 Mon Sep 17 00:00:00 2001 From: Dilshat Aliev Date: Sat, 21 Jul 2018 12:24:19 +0600 Subject: [PATCH] #2222 Enable the selection of code on Subutai Console --- .../main/webapp/assets/js/plugins/vtortola.ng-terminal.js | 7 +++++++ 1 file changed, 7 insertions(+) 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) {