Commit 0aeacdb3 authored by Julien Schmidt's avatar Julien Schmidt

only select whole log text if nothing was selected

parent cbb70ed6
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment