mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 14:03:42 +00:00
fix: use jq el for focus
This commit is contained in:
parent
cd39bb5aa0
commit
d35026467e
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user