diff --git a/program/js/app.js b/program/js/app.js index b2e7dde3a..86d2eb6cf 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -203,8 +203,11 @@ function rcube_webmail() this.set_page_buttons(); - // focus this window - window.focus(); + // focus main window + if (this.env.framed && window.parent) + window.parent.focus(); + else + window.focus(); // init message compose form if (this.env.action=='compose')