Fix so use of Ctrl+A does not scroll the list (#7020)

pull/7076/head
Aleksander Machniak 5 years ago
parent 1c1a73e4d5
commit 9219f4cd65

@ -14,6 +14,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where a new contact group added after removing all groups from addressbook wasn't added to the list - Fix bug where a new contact group added after removing all groups from addressbook wasn't added to the list
- Fix bug where Ctype extension wasn't required in Installer and INSTALL file (#7049) - Fix bug where Ctype extension wasn't required in Installer and INSTALL file (#7049)
- Fix so install-jsdeps.sh removes Bootstrap's sourceMappingURL (#7035) - Fix so install-jsdeps.sh removes Bootstrap's sourceMappingURL (#7035)
- Fix so use of Ctrl+A does not scroll the list (#7020)
RELEASE 1.4.1 RELEASE 1.4.1
------------- -------------

@ -1122,11 +1122,13 @@ select_next: function(uid)
/** /**
* Select first row * Select first row
*/ */
select_first: function(mod_key) select_first: function(mod_key, noscroll)
{ {
var row = this.get_first_row(); var row = this.get_first_row();
if (row) { if (row) {
this.select_row(row, mod_key, false); this.select_row(row, mod_key, false);
if (!noscroll)
this.scrollto(row); this.scrollto(row);
} }
}, },
@ -1135,11 +1137,13 @@ select_first: function(mod_key)
/** /**
* Select last row * Select last row
*/ */
select_last: function(mod_key) select_last: function(mod_key, noscroll)
{ {
var row = this.get_last_row(); var row = this.get_last_row();
if (row) { if (row) {
this.select_row(row, mod_key, false); this.select_row(row, mod_key, false);
if (!noscroll)
this.scrollto(row); this.scrollto(row);
} }
}, },
@ -1450,8 +1454,8 @@ key_press: function(e)
case 65: // Ctrl + A case 65: // Ctrl + A
if (mod_key == CONTROL_KEY && this.multiselect) { if (mod_key == CONTROL_KEY && this.multiselect) {
this.select_first(); this.select_first(null, true);
this.select_last(SHIFT_KEY); this.select_last(SHIFT_KEY, true);
return rcube_event.cancel(e); return rcube_event.cancel(e);
} }
break; break;

Loading…
Cancel
Save