diff options
author | cmcnulty <cmcnulty@kznf.com> | 2013-10-29 21:44:58 -0500 |
---|---|---|
committer | cmcnulty <cmcnulty@kznf.com> | 2013-10-29 21:44:58 -0500 |
commit | 3bef61232bc2e0e470a66dda6d88248100fdc36f (patch) | |
tree | 98b2611f1e2afdb4fc8a73aa5b65014b6e146c88 /program | |
parent | a222f5c045c2a6c14b3c961b83a2d8ee9d3c9331 (diff) |
simplify home/end key behavior
Makes the home/end keys behave like every other mechanism for selecting
records.
Diffstat (limited to 'program')
-rw-r--r-- | program/js/list.js | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/program/js/list.js b/program/js/list.js index 8ad0a336b..b85ea61ca 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -856,14 +856,8 @@ select_first: function(mod_key) { 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 @@ select_last: function(mod_key) { 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); } }, |