From ad9dac529e37fc76d46d76cf3cff336598843826 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 30 Jun 2012 09:48:06 +0200 Subject: Fix wrong compose screen elements focus in IE9 (#1488541) --- program/js/editor.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'program/js/editor.js') diff --git a/program/js/editor.js b/program/js/editor.js index 702ca1cd4..87ea1937f 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -84,8 +84,11 @@ function rcmail_editor_callback() rcmail.change_identity(elem); // Focus previously focused element if (fe && fe.id != rcmail.env.composebody) { - window.focus(); // for WebKit (#1486674) - fe.focus(); + // use setTimeout() for IE9 (#1488541) + window.setTimeout(function() { + window.focus(); // for WebKit (#1486674) + fe.focus(); + }, 10); } } -- cgit v1.2.3