mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 11:07:42 +00:00
fix(keybindings): show ⇧ for Shift in Windows/Linux shortcut labels (#35754)
* fix(keybindings): show the ⇧ glyph for Shift on Windows and Linux Spelled-out Shift made non-mac shortcut labels long (Ctrl+Shift+Backspace). * test(menu): expect the ⇧ glyph in non-mac app menu hints; align double-tap hint
This commit is contained in:
@@ -32,7 +32,7 @@ function formatModifierGlyph(modifier: ModifierToken, isMac: boolean): string {
|
||||
case 'Alt':
|
||||
return isMac ? '⌥' : 'Alt'
|
||||
case 'Shift':
|
||||
return isMac ? '⇧' : 'Shift'
|
||||
return '⇧'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ export function formatKeybinding(binding: string, platform: NodeJS.Platform): st
|
||||
parts.push(isMac ? '⌥' : 'Alt')
|
||||
}
|
||||
if (parsed.shift) {
|
||||
parts.push(isMac ? '⇧' : 'Shift')
|
||||
parts.push('⇧')
|
||||
}
|
||||
parts.push(formatKeyToken(parsed.key, isMac))
|
||||
return parts
|
||||
|
||||
Reference in New Issue
Block a user