From 3c7346a40b2aefb3b2178516868dc9dca1adfe88 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sat, 11 Aug 2012 15:53:33 -0400
Subject: [PATCH] Fix focus on the list when list row is clicked (#1488600)

---
 program/js/list.js |    2 +-
 CHANGELOG          |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 47909f3..3441f1e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Fix focus on the list when list row is clicked (#1488600)
 - Added separate From and To columns apart from smart From/To column (#1486891)
 - Fix fallback to Larry skin when configured skin isn't available (#1488591)
 - Fix (workaround) delete operations with some versions of memcache (#1488592)
diff --git a/program/js/list.js b/program/js/list.js
index b194721..e84124b 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -232,7 +232,7 @@
   }
 
   // Un-focus already focused elements
-  $('*:focus', window).blur();
+  $(document.activeElement).blur();
   $('iframe').each(function() { this.blur(); });
 
   if (e || (e = window.event))

--
Gitblit v1.9.1