Browse Source

feat: added id and tabindex to terminal title and each text line

Marcelo Vilas Boas Correa Filho 2 years ago
parent
commit
e04ecc32f6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/io/domConsole.js

+ 2 - 2
js/io/domConsole.js

@@ -7,7 +7,7 @@ export class DOMConsole {
     return `
     <div class="bash-title">
       <i id="ivprog-console-clearbtn" class="icon eraser" style="float:left;padding-left: 5px"></i>
-      <span>Terminal</span>
+      <span id="ivprog-console-title-span" tabindex="0">Terminal</span>
       <i id="ivprog-console-showbtn" class="icon window maximize outline" style="float:right"></i>
       <i id="ivprog-console-hidebtn" class="icon window minimize outline" style="float:right"></i>
     </div>
@@ -256,7 +256,7 @@ export class DOMConsole {
 
   getOutputText (text) {
     text = text.replace(/\s/g, "&#160;");
-    return `<span>${text}</span>`;
+    return `<span tabindex="0">${text}</span>`;
   }
 
   getUserInputText (text) {