summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-12-16 14:39:26 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2014-12-16 14:39:33 +0100
commitb80f4bafc31fe40ff1263ed4923c0f0a88f64024 (patch)
tree6a95fae7e80d735309890e2fcba4e3e9df9b390b
parent8ccfc271d7e84972d5a72405e7523875f7990a0f (diff)
Remove focus from toggle item if clicked with the mouse
-rw-r--r--skins/larry/ui.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 583763ad1..fb7ca318c 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -149,7 +149,12 @@ function rcube_mail_ui()
rcmail.addEventListener('enable-command', enable_command)
.addEventListener('aftershow-headers', function() { layout_messageview(); })
.addEventListener('afterhide-headers', function() { layout_messageview(); });
- $('#previewheaderstoggle').click(function(e){ toggle_preview_headers(); return false });
+ $('#previewheaderstoggle').click(function(e) {
+ toggle_preview_headers();
+ if (this.blur && !rcube_event.is_keyboard(e))
+ this.blur();
+ return false;
+ });
// add menu link for each attachment
$('#attachment-list > li').each(function() {