cmcnulty
2013-10-29 3bef61232bc2e0e470a66dda6d88248100fdc36f
simplify home/end key behavior

Makes the home/end keys behave like every other mechanism for selecting
records.
1 files modified
20 ■■■■ changed files
program/js/list.js 20 ●●●● patch | view | raw | blame | history
program/js/list.js
@@ -856,14 +856,8 @@
{
  var row = this.get_first_row();
  if (row) {
    if (mod_key) {
      this.shift_select(row, mod_key);
      this.triggerEvent('select');
      this.scrollto(row);
    }
    else {
      this.select(row);
    }
    this.select_row(row, mod_key, false);
    this.scrollto(row);
  }
},
@@ -875,14 +869,8 @@
{
  var row = this.get_last_row();
  if (row) {
    if (mod_key) {
      this.shift_select(row, mod_key);
      this.triggerEvent('select');
      this.scrollto(row);
    }
    else {
      this.select(row);
    }
    this.select_row(row, mod_key, false);
    this.scrollto(row);
  }
},