summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/js/list.js b/program/js/list.js
index aabba0842..406590b4c 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -214,6 +214,7 @@ focus: function(e)
{
var id;
this.focused = true;
+
for (var n in this.selection) {
id = this.selection[n];
if (this.rows[id] && this.rows[id].obj) {
@@ -221,6 +222,9 @@ focus: function(e)
}
}
+ // Un-focus already focused elements
+ $('*:focus').blur();
+
if (e || (e = window.event))
rcube_event.cancel(e);
},