replace space bar with arrow key thread handling

and switch spacebar to select messages
pull/151/head
cmcnulty 11 years ago
parent 3bef61232b
commit 9806c72764

@ -1124,10 +1124,13 @@ key_press: function(e)
// Stop propagation so that the browser doesn't scroll // Stop propagation so that the browser doesn't scroll
rcube_event.cancel(e); rcube_event.cancel(e);
return this.use_arrow_key(keyCode, mod_key); 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: 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 // Stop propagation
rcube_event.cancel(e); rcube_event.cancel(e);
var ret = this.use_plusminus_key(keyCode, mod_key); 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) if (!selected_row || !selected_row.has_children)
return; return;
if (keyCode == 32)
keyCode = selected_row.expanded ? 109 : 61;
// expand // expand
if (keyCode == 61 || keyCode == 107) { if (keyCode == 39 || keyCode == 107) {
if (selected_row.expanded) if (selected_row.expanded)
return; return;

Loading…
Cancel
Save