]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: fix hotkey arrows (#8583)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 2 Jan 2025 05:10:56 +0000 (21:10 -0800)
committerGitHub <noreply@github.com>
Thu, 2 Jan 2025 05:10:56 +0000 (21:10 -0800)
src-ui/messages.xlf
src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.spec.ts
src-ui/src/app/components/common/hotkey-dialog/hotkey-dialog.component.ts

index 7535206a4f97da90f93800e5b4ab90c1c78d3c58..1f71afd161f45be7dbbdeef8d5fd5672547bbc49 100644 (file)
         <source>Keyboard shortcuts</source>
         <context-group purpose="location">
           <context context-type="sourcefile">src/app/components/common/hotkey-dialog/hotkey-dialog.component.ts</context>
-          <context context-type="linenumber">20</context>
+          <context context-type="linenumber">22</context>
         </context-group>
       </trans-unit>
       <trans-unit id="4814285799071780083" datatype="html">
index ce11797a7c35e21ca44f7eac968a7cc0b2deb7c2..e96f9d3f133a9e7319fcea5b48d9abed65fcab1c 100644 (file)
@@ -29,7 +29,7 @@ describe('HotkeyDialogComponent', () => {
   })
 
   it('should format keys', () => {
-    expect(component.formatKey('control.a')).toEqual('&#8963; a') // ⌃ + a
-    expect(component.formatKey('control.a', true)).toEqual('&#8984; a') // ⌘ + a
+    expect(component.formatKey('control.a')).toEqual('&#8963; a') // ⌃ + a
+    expect(component.formatKey('control.a', true)).toEqual('&#8984; a') // ⌘ + a
   })
 })
index f89d5be51a4fd1c262fa85333e65f9a06d98e892..429e2db1763526c0d614e1e17544212c98917512 100644 (file)
@@ -9,6 +9,8 @@ const SYMBOLS = {
   right: '&#8594;', // →
   up: '&#8593;', // ↑
   down: '&#8595;', // ↓
+  arrowleft: '&#8592;', // ←
+  arrowright: '&#8594;', // →
 }
 
 @Component({
@@ -33,6 +35,6 @@ export class HotkeyDialogComponent {
     return key
       .split('.')
       .map((k) => SYMBOLS[k] || k)
-      .join(' ')
+      .join(' ')
   }
 }