Skip to content

Commit

Permalink
Added Shift+Click to open file in explorer and updated shortcut secti…
Browse files Browse the repository at this point in the history
…on in settings
  • Loading branch information
aryanpal26 committed Dec 9, 2024
1 parent 72e8858 commit f1537c5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@
},
"SHORTCUTS": {
"andClickAnyFile": "and click any file to see the file details",
"andClickAnyFileForExplorer": "and click any file to open it in your explorer",
"andPress": "and press",
"clickToRename": "To change a shortcut, click on it and press desired key on your keyboard.",
"compactView": "Toggle compact view",
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/app/components/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,10 @@ export class HomeComponent implements OnInit, AfterViewInit {
// ctrl/cmd + click for thumbnail sheet
if (eventObject.mouseEvent.ctrlKey === true || eventObject.mouseEvent.metaKey) {
this.openThumbnailSheet(item);
} else {
} else if (eventObject.mouseEvent.shiftKey === true) {
// If Shift key is pressed, open the file in the explorer
this.openInExplorer();
}else {
this.openVideo(item, eventObject.thumbIndex);
// `openVideo` method handles the `not connected` case
}
Expand Down
8 changes: 8 additions & 0 deletions src/app/components/shortcuts/shortcuts.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
{{ 'SHORTCUTS.andClickAnyFile' | translate }}
</span>

<span style="display: block; margin-bottom: 15px;">
{{ 'SHORTCUTS.hold' | translate }}<em class="shortcut-key modifier-key">Shift</em>
<ng-container *ngIf="macVersion">
{{ 'SHORTCUTS.or' | translate }}<em class="shortcut-key modifier-key">Command</em>
</ng-container>
{{ 'SHORTCUTS.andClickAnyFileForExplorer' | translate }}
</span>

<span>{{ 'SHORTCUTS.hold' | translate }}<em class="shortcut-key modifier-key">Ctrl</em>
<ng-container *ngIf="macVersion">
{{ 'SHORTCUTS.or' | translate }}<em class="shortcut-key modifier-key">Command</em>
Expand Down

0 comments on commit f1537c5

Please sign in to comment.