From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Thu, 2 Jan 2025 05:10:56 +0000 (-0800)
Subject: Fix: fix hotkey arrows (#8583)
X-Git-Tag: v2.14.0~1^2~28
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0dd77bfd8ed4014563de0cdb9875248e561379f;p=thirdparty%2Fpaperless-ngx.git
Fix: fix hotkey arrows (#8583)
---
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index 7535206a4f..1f71afd161 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -4985,7 +4985,7 @@
Keyboard shortcuts
src/app/components/common/hotkey-dialog/hotkey-dialog.component.ts
- 20
+ 22
diff --git a/src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.spec.ts b/src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.spec.ts
index ce11797a7c..e96f9d3f13 100644
--- a/src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.spec.ts
+++ b/src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.spec.ts
@@ -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
})
})
diff --git a/src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.ts b/src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.ts
index f89d5be51a..429e2db176 100644
--- a/src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.ts
+++ b/src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.ts
@@ -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(' ')
}
}