Web: Files: added select with shift key

This commit is contained in:
Nikita Gopienko 2023-01-16 11:40:10 +03:00
parent 2fde4debb3
commit 7e5beccb47
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ export default function withFileActions(WrappedFileItem) {
onMouseClick = (e) => {
const { viewAs, withCtrlSelect, item } = this.props;
if (e.ctrlKey) {
if (e.ctrlKey || e.shiftKey) {
withCtrlSelect(item);
return;
}

View File

@ -445,7 +445,7 @@ class Tile extends React.PureComponent {
withCtrlSelect,
} = this.props;
if (e.ctrlKey) {
if (e.ctrlKey || e.shiftKey) {
withCtrlSelect(item);
return;
}