mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Small optimizations
This commit is contained in:
parent
83036c8341
commit
cc9186377f
5 changed files with 31 additions and 21 deletions
|
|
@ -652,7 +652,7 @@ Selector.prototype.actionClick = function (oItem, oEvent)
|
|||
|
||||
if (oEvent)
|
||||
{
|
||||
if (oEvent.shiftKey)
|
||||
if (oEvent.shiftKey && !oEvent.ctrlKey && !oEvent.altKey)
|
||||
{
|
||||
bClick = false;
|
||||
if ('' === this.sLastUid)
|
||||
|
|
@ -665,10 +665,16 @@ Selector.prototype.actionClick = function (oItem, oEvent)
|
|||
|
||||
this.focusedItem(oItem);
|
||||
}
|
||||
else if (oEvent.ctrlKey)
|
||||
else if (oEvent.ctrlKey && !oEvent.shiftKey && !oEvent.altKey)
|
||||
{
|
||||
bClick = false;
|
||||
this.focusedItem(oItem);
|
||||
|
||||
if (this.selectedItem() && oItem !== this.selectedItem())
|
||||
{
|
||||
this.selectedItem().checked(true);
|
||||
}
|
||||
|
||||
oItem.checked(!oItem.checked());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue