@for(shortcut of shortcuts(); track shortcut.keyBindTarget ?? shortcut.key ?? $index) {
@if (shortcut.keyBindTarget) {
@for(keyBind of keyBindService.allKeyBinds()[shortcut.keyBindTarget].slice(0, 2); track $index) {
{{ keyBind | keyBind }}
@if (shortcut.description) {
{{ t(shortcut.description) }}
} @else {
@let settingDesc = shortcut.keyBindTarget | keybindSettingDescription;
{{ settingDesc.tooltip }}
}
}
} @else {
{{ shortcut.key }}
@if (shortcut.description) {
{{ t(shortcut.description) }}
}
}
}