Browse Source

feat: now after running the code the focus will go to terminl title

Marcelo Vilas Boas Correa Filho 3 years ago
parent
commit
ac526bab7e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      js/accessibleUI/compiler.js

+ 3 - 0
js/accessibleUI/compiler.js

@@ -17,6 +17,7 @@ let isRunning = false;
 let domConsole = new DOMConsole("terminal");
 
 //
+const ivprogConsoleTitleSpan = document.getElementById('ivprog-console-title-span');
 const runCodePlayIcon = document.getElementById('runCodePlayIcon');
 const runCodeStopIcon = document.getElementById('runCodeStopIcon');
 
@@ -106,8 +107,10 @@ export function runCode () {
                     isRunning = false;
                     proc = null;
                     showRunButton();
+                    ivprogConsoleTitleSpan.focus();
                     return true;
                 }
+
                 return false;
             }, 100);
         }).catch(err => {