diff options
author | cmcnulty <cmcnulty@kznf.com> | 2013-10-29 23:15:50 -0500 |
---|---|---|
committer | cmcnulty <cmcnulty@kznf.com> | 2013-10-29 23:15:50 -0500 |
commit | a8876fba93a1e52dd0daab6fa3b7b74fedbdc252 (patch) | |
tree | da8115634fade6d1ebeb39bb465b8d2c0adbbe05 /program/js/list.js | |
parent | 9806c72764e4c3f82f3b249b5456137662211e2d (diff) |
Revert "simplify home/end key behavior"
This reverts commit 3bef61232bc2e0e470a66dda6d88248100fdc36f.
Diffstat (limited to 'program/js/list.js')
-rw-r--r-- | program/js/list.js | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/program/js/list.js b/program/js/list.js index ff1b13140..5bc7c9665 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -856,8 +856,14 @@ select_first: function(mod_key) { var row = this.get_first_row(); if (row) { - this.select_row(row, mod_key, false); - this.scrollto(row); + if (mod_key) { + this.shift_select(row, mod_key); + this.triggerEvent('select'); + this.scrollto(row); + } + else { + this.select(row); + } } }, @@ -869,8 +875,14 @@ select_last: function(mod_key) { var row = this.get_last_row(); if (row) { - this.select_row(row, mod_key, false); - this.scrollto(row); + if (mod_key) { + this.shift_select(row, mod_key); + this.triggerEvent('select'); + this.scrollto(row); + } + else { + this.select(row); + } } }, |