simplify home/end key behavior
Makes the home/end keys behave like every other mechanism for selecting
records.
| | |
| | | { |
| | | 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); |
| | | } |
| | | }, |
| | | |
| | |
| | | { |
| | | 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); |
| | | } |
| | | }, |
| | | |