summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-03 12:14:50 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-03 12:14:50 +0200
commit3db62ce1015c134ff7a6b83294f8c2cbf1f1a096 (patch)
tree0f441d7d9e7bda01f697b06664f86c0ce177a826
parent517dae3e74e39aceabaf2c5da330849a21e82d81 (diff)
Fix messages list focus issue in Opera and Webkit (#1489058)
-rw-r--r--CHANGELOG1
-rw-r--r--program/js/list.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 675c14857..8aa7948fe 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
+- Fix messages list focus issue in Opera and Webkit (#1489058)
- Make PHP code eval() free, use create_function()
- Add option to display email address together with a name in mail preview (#1488732)
- Fix Reply-To header handling in Reply-All action (#1489037)
diff --git a/program/js/list.js b/program/js/list.js
index dd99fd2f2..0385092d6 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -289,7 +289,9 @@ focus: function(e)
}
// Un-focus already focused elements (#1487123, #1487316, #1488600, #1488620)
+ // It looks that window.focus() does the job for all browsers, but not Firefox (#1489058)
$(':focus:not(body)').blur();
+ window.focus();
if (e || (e = window.event))
rcube_event.cancel(e);