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

bnet/additions
Aleksander Machniak 5 years ago
parent 1800678a40
commit e29d44dcc3

@ -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 Ctype extension wasn't required in Installer and INSTALL file (#7049)
- 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
-------------

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

Loading…
Cancel
Save