Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Shift+Click to open file in explorer and updated shortcut secti… #876

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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