sel: initiate selection with ctrl / shift (fix #745)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/767/head
Varun Patil 2023-07-23 11:42:23 -07:00
parent ab01f9d105
commit 79266d75b3
1 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ export default defineComponent({
if (event.pointerType === 'touch') return; // let touch events handle this
if (event.pointerType === 'mouse' && event.button !== 0) return; // only left click for mouse
if (this.has()) {
if (this.has() || event.ctrlKey || event.shiftKey) {
this.clickSelectionIcon(photo, event, rowIdx);
} else {
this.openViewer(photo);
@ -320,7 +320,7 @@ export default defineComponent({
/** Clicking on checkmark icon */
clickSelectionIcon(photo: IPhoto, event: PointerEvent, rowIdx: number) {
if (event.shiftKey) {
if (this.has() && event.shiftKey) {
this.selectMulti(photo, this.rows, rowIdx);
} else {
this.selectPhoto(photo);