summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authorcmcnulty <cmcnulty@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-05-19 16:35:44 +0000
committercmcnulty <cmcnulty@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-05-19 16:35:44 +0000
commitb5b61da533694d6564f8311d6e5d110f03f2ef9a (patch)
treef0558cd62f760da6048eadc51ddc5216afae69e9 /roundcubemail/program/js/app.js
parent18b425cd2840cabe907cf64eb453613565ed6be2 (diff)
Added "Enter" key support for viewing a message
slightly changed behavior of clicking/double clicking messages to conform to Outlook 2003 (OE/Outlook/Thunderbird all handle double-click with Ctrl key pressed differently) git-svn-id: https://svn.roundcube.net/trunk@240 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index fe5e4ce1e..da7d18c9a 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -274,6 +274,9 @@ function rcube_webmail()
var keyCode = document.layers ? e.which : document.all ? event.keyCode : document.getElementById ? e.keyCode : 0;
var mod_key = this.get_modifier(e);
switch (keyCode) {
+ case 13:
+ this.command('show','',this);
+ break;
case 40:
case 38:
return this.use_arrow_key(keyCode, mod_key, msg_list_frame);
@@ -284,6 +287,7 @@ function rcube_webmail()
default:
return true;
}
+ return true;
}
this.use_arrow_key = function(keyCode, mod_key, msg_list_frame) {
@@ -1099,7 +1103,7 @@ function rcube_webmail()
return false;
// selects currently unselected row
- if (!this.in_selection_before)
+ if (!this.in_selection_before && !this.list_rows[id].clicked)
{
var mod_key = this.get_modifier(e);
this.select_row(id,mod_key,false);
@@ -1129,14 +1133,14 @@ function rcube_webmail()
}
// unselects currently selected row
- if (!this.drag_active && this.in_selection_before==id)
+ if (!this.drag_active && this.in_selection_before==id && !this.list_rows[id].clicked)
this.select_row(id,mod_key,false);
this.drag_start = false;
this.in_selection_before = false;
// row was double clicked
- if (this.task=='mail' && this.list_rows && this.list_rows[id].clicked && !mod_key)
+ if (this.task=='mail' && this.list_rows && this.list_rows[id].clicked && this.in_selection(id))
{
this.show_message(id);
return false;