Aleksander Machniak
2013-11-05 5c7bbfcd598c89aee17096eda1188a1b4803bcf4
Fix regression where child messages on collapsed thread weren't selected
on move/delete action (#1489415)
1 files modified
10 ■■■■■ changed files
program/js/list.js 10 ●●●●● patch | view | raw | blame | history
program/js/list.js
@@ -895,7 +895,7 @@
  for (i=0; i<len; i++)
    if (!this.in_selection(children[i]))
      this.select_row(children[i], CONTROL_KEY);
      this.select_row(children[i], CONTROL_KEY, true);
},
@@ -1135,9 +1135,11 @@
      // Stop propagation so that the browser doesn't scroll
      rcube_event.cancel(e);
      return this.use_arrow_key(keyCode, mod_key);
    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
@@ -1150,20 +1152,26 @@
      this.triggerEvent('keypress');
      this.modkey = 0;
      return ret;
    case 36: // Home
      this.select_first(mod_key);
      return rcube_event.cancel(e);
    case 35: // End
      this.select_last(mod_key);
      return rcube_event.cancel(e);
    case 27:
      if (this.drag_active)
        return this.drag_mouse_up(e);
      if (this.col_drag_active) {
        this.selected_column = null;
        return this.column_drag_mouse_up(e);
      }
      return rcube_event.cancel(e);
    default:
      this.key_pressed = keyCode;
      this.modkey = mod_key;