Files
cbsnexora/src/app/shared/keyboard-shortcuts-dialog/keyboard-shortcuts-dialog.component.html
T

43 lines
1.3 KiB
HTML

<!--
Copyright since 2025 Mifos Initiative
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<h1 mat-dialog-title>{{ 'labels.heading.Keyboard Shortcuts' | translate }}</h1>
<div mat-dialog-content>
<div class="layout-column gap-2px">
@for (item of buttonConfig.buttonCombinations; track item) {
<mat-divider [inset]="true"></mat-divider>
<div class="flex-fill flex-50">
<span class="flex-50">
@if (item.ctrlKey) {
<span>
<span class="modifier-key">{{ 'labels.inputs.Ctrl' | translate }}</span> +
</span>
}
@if (item.shiftKey) {
<span>
<span class="modifier-key">{{ 'labels.inputs.Shift' | translate }}</span> +
</span>
}
@if (item.altKey) {
<span>
<span class="modifier-key">{{ 'labels.inputs.Alt' | translate }}</span> +
</span>
}
@if (item.key) {
<span>
<span class="modifier-key">{{ item.key }}</span></span
>
}
</span>
<span class="flex-50">{{ item.title }}</span>
</div>
}
</div>
</div>