Fix: fix hotkey arrows (#8583)

This commit is contained in:
shamoon authored and GitHub committed 2025-01-01 21:10:56 -08:00
1 parent 51b0f6e325
commit b0dd77bfd8
3 files changed
+6 -4

No files matched your search

@@ -29,7 +29,7 @@ describe('HotkeyDialogComponent', () => {
})
it('should format keys', () => {
expect(component.formatKey('control.a')).toEqual('⌃ + a') // ⌃ + a
expect(component.formatKey('control.a', true)).toEqual('⌘ + a') // ⌘ + a
expect(component.formatKey('control.a')).toEqual('⌃ a') // ⌃ + a
expect(component.formatKey('control.a', true)).toEqual('⌘ a') // ⌘ + a
})
})
@@ -9,6 +9,8 @@ const SYMBOLS = {
right: '→', // →
up: '↑', // ↑
down: '↓', // ↓
arrowleft: '←', // ←
arrowright: '→', // →
}
@Component({
@@ -33,6 +35,6 @@ export class HotkeyDialogComponent {
return key
.split('.')
.map((k) => SYMBOLS[k] || k)
.join(' + ')
.join(' ')
}
}