fix(ui): fix keyboard shortcuts modal Enter key emoji and menu capitalization (#26173)
- Append Unicode text variation selector U+FE0E to the ↩ character in ShortcutItem.svelte to prevent iOS/iPadOS rendering it as a colorful emoji instead of a plain text glyph. - Fix 'Keyboard shortcuts' → 'Keyboard Shortcuts' (capital S) in the user menu to match the modal title and standard title case.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -46,7 +46,7 @@
|
|||||||
case 'escape':
|
case 'escape':
|
||||||
return 'Esc';
|
return 'Esc';
|
||||||
case 'enter':
|
case 'enter':
|
||||||
return isMac ? '↩' : 'Enter';
|
return isMac ? '↩\uFE0E' : 'Enter';
|
||||||
case 'tab':
|
case 'tab':
|
||||||
return isMac ? '⇥' : 'Tab';
|
return isMac ? '⇥' : 'Tab';
|
||||||
case 'arrowup':
|
case 'arrowup':
|
||||||
|
|||||||
@@ -613,7 +613,7 @@
|
|||||||
<div class=" self-center mr-3">
|
<div class=" self-center mr-3">
|
||||||
<Keyboard className="size-5" />
|
<Keyboard className="size-5" />
|
||||||
</div>
|
</div>
|
||||||
<div class=" self-center truncate">{$i18n.t('Keyboard shortcuts')}</div>
|
<div class=" self-center truncate">{$i18n.t('Keyboard Shortcuts')}</div>
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user