Skip to content
Snippets Groups Projects
Commit 0aeacdb3 authored by Julien Schmidt's avatar Julien Schmidt
Browse files

only select whole log text if nothing was selected

parent cbb70ed6
No related branches found
No related tags found
No related merge requests found
......@@ -251,8 +251,11 @@ function runTest(index, testFunc, fatal=false) {
const logElem = document.getElementById('log');
logElem.onclick = function() {
this.focus();
this.select();
// select the whole text if nothing was selected yet
if (this.selectionStart == this.selectionEnd) {
this.focus();
this.select();
}
}
function log(msg) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment