summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorcmcnulty <cmcnulty@kznf.com>2013-10-29 23:13:01 -0500
committercmcnulty <cmcnulty@kznf.com>2013-10-29 23:13:01 -0500
commit9806c72764e4c3f82f3b249b5456137662211e2d (patch)
treefb8e8a78e6b7acd62c9d3e7ddf7760488c42daf8 /program
parent3bef61232bc2e0e470a66dda6d88248100fdc36f (diff)
replace space bar with arrow key thread handling
and switch spacebar to select messages
Diffstat (limited to 'program')
-rw-r--r--program/js/list.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/program/js/list.js b/program/js/list.js
index b85ea61ca..ff1b13140 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -1124,10 +1124,13 @@ key_press: function(e)
// Stop propagation so that the browser doesn't scroll
rcube_event.cancel(e);
return this.use_arrow_key(keyCode, mod_key);
- case 61:
- case 107: // Plus sign on a numeric keypad (fc11 + firefox 3.5.2)
- case 109:
case 32:
+ rcube_event.cancel(e);
+ return this.select_row(this.last_selected, mod_key, true);
+ case 37: // Left arrow key
+ case 39: // Right arrow key
+ case 107: // Plus sign on a numeric keypad
+ case 109: // Minus sign on a numeric keypad
// Stop propagation
rcube_event.cancel(e);
var ret = this.use_plusminus_key(keyCode, mod_key);
@@ -1196,11 +1199,8 @@ use_plusminus_key: function(keyCode, mod_key)
if (!selected_row || !selected_row.has_children)
return;
- if (keyCode == 32)
- keyCode = selected_row.expanded ? 109 : 61;
-
// expand
- if (keyCode == 61 || keyCode == 107) {
+ if (keyCode == 39 || keyCode == 107) {
if (selected_row.expanded)
return;