diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-10-30 04:10:46 -0700 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-10-30 04:10:46 -0700 |
commit | ed119d3639db9cb1e9553bc5a7e9a1ca81ece98d (patch) | |
tree | 3adfc3b09282f8de46209a84382f9576eb597169 /program | |
parent | b972b4c4c079898250912588d1eb1d8907dfe868 (diff) | |
parent | 3bef61232bc2e0e470a66dda6d88248100fdc36f (diff) |
Merge pull request #150 from cmcnulty/1489396
fix #1489396 - make home/end key behavior consistent
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); } }, |