Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: fix hotkey arrows (#8583)

shamoonb0dd77bfd8ed
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index 7535206a4..1f71afd16 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -4985,7 +4985,7 @@
<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">
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 ce11797a7..e96f9d3f1 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('&#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
})
})
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 f89d5be51..429e2db17 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: '&#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(' ')
}
}