-
-
Notifications
You must be signed in to change notification settings - Fork 190
/
Copy pathshortcuts.component.html
56 lines (50 loc) · 2.03 KB
/
shortcuts.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<span style="display: block; margin-bottom: 15px;">
{{ '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>
</ng-container>
{{ '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>
</ng-container>
{{ 'SHORTCUTS.andPress' | translate }}:
</span>
<div class="shortcut-container">
<div
class="shortcut-item"
*ngFor="let item of shortcutsInOrder"
[ngClass]="{
'space-after': item === 'showClips'
|| item === 'fuzzySearch'
|| item === 'shuffleGalleryNow'
|| item === 'startWizard'
|| item === 'darkMode'
|| item === 'showAutoTags'
}"
>
<em
class="shortcut-key clickable"
(click)="changeThisShortcut(item)"
[ngClass]="{
'selected-for-change': item === shortcutToChange,
'empty': !shortcutService.actionToKeyMap.get(item)
}"
>{{ shortcutService.actionToKeyMap.get(item) || '-' }}</em> -
{{ 'SHORTCUTS.' + item | translate }}
</div>
<!-- System reserved -->
<div class="shortcut-item"><em class="shortcut-key">w</em> - {{ 'SHORTCUTS.quit' | translate }}</div>
<div class="shortcut-item space-after"><em class="shortcut-key">q</em> - {{ 'SHORTCUTS.quit' | translate }}</div>
</div>
<span>
{{ 'SHORTCUTS.clickToRename' | translate }}
</span>