diff --git a/src/gui/src/services/ExecService.js b/src/gui/src/services/ExecService.js index 2146f758..15ef144c 100644 --- a/src/gui/src/services/ExecService.js +++ b/src/gui/src/services/ExecService.js @@ -51,8 +51,8 @@ export class ExecService extends Service { // If `window-active` is set (meanign the window is focused), focus the window one more time // this is to ensure that the iframe is `definitely` focused and can receive keyboard events (e.g. keydown) - if(child_process.el_win.hasClass('window-active')){ - child_process.el_win.focusWindow(); + if($(child_process.references.el_win).hasClass('window-active')){ + $(child_process.references.el_win).focusWindow(); } });