summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-03-11 09:35:26 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-03-11 09:35:26 (GMT)
commita32690ad38807f33d5429035417c2446b4a55d84 (patch)
tree1e8314cfb76aaa3e66700d7477859bcc1fcaa0fd /plugins
parente8c387ef0d5a1851cbf7f819de722f25c623ed4e (diff)
downloadroundcubemail-plugins-kolab-a32690ad38807f33d5429035417c2446b4a55d84.tar.gz
Remove focus from quickview icon on mouse clicks (#4684)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/calendar/calendar_ui.js4
-rw-r--r--plugins/libkolab/js/folderlist.js3
-rw-r--r--plugins/tasklist/tasklist.js3
3 files changed, 10 insertions, 0 deletions
diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js
index 633d1d5..06e8759 100644
--- a/plugins/calendar/calendar_ui.js
+++ b/plugins/calendar/calendar_ui.js
@@ -3685,6 +3685,7 @@ function rcube_calendar_ui(settings)
add_calendar_source(event.data);
}
me.quickview(event.data.id, event.shiftKey || event.metaKey || event.ctrlKey);
+ return false;
}
});
@@ -3736,6 +3737,9 @@ function rcube_calendar_ui(settings)
if (me.calendars[id])
me.quickview(id, e.shiftKey || e.metaKey || e.ctrlKey);
+ if (!rcube_event.is_keyboard(e) && this.blur)
+ this.blur();
+
e.stopPropagation();
return false;
});
diff --git a/plugins/libkolab/js/folderlist.js b/plugins/libkolab/js/folderlist.js
index 62a60ef..64f8a35 100644
--- a/plugins/libkolab/js/folderlist.js
+++ b/plugins/libkolab/js/folderlist.js
@@ -117,6 +117,9 @@ function kolab_folderlist(node, p)
if (p.id_decode)
id = p.id_decode(id);
+ if (!rcube_event.is_keyboard(e) && e.target.blur)
+ e.target.blur();
+
// forward event
if (prop = search_results[id]) {
e.data = prop;
diff --git a/plugins/tasklist/tasklist.js b/plugins/tasklist/tasklist.js
index c8faa87..7adf608 100644
--- a/plugins/tasklist/tasklist.js
+++ b/plugins/tasklist/tasklist.js
@@ -240,6 +240,9 @@ function rcube_tasklist_ui(settings)
if (tasklists_widget.is_search())
id = id.replace(/--xsR$/, '');
+ if (!rcube_event.is_keyboard(e) && this.blur)
+ this.blur();
+
set_focusview(id, e.shiftKey || e.metaKey || e.ctrlKey);
e.stopPropagation();
return false;