소스 검색

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

Marcelo Vilas Boas Correa Filho 2 년 전
부모
커밋
ac526bab7e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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 => {