Skip to content

Commit

Permalink
#2222 Enable the selection of code on Subutai Console
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilshat Aliev committed Jul 21, 2018
1 parent 9c8ff79 commit dc6bf90
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dc6bf90

Please sign in to comment.