Skip to content

Commit cca74b4

Browse files
Changed shortcut format for better accessibility
1 parent d5eee45 commit cca74b4

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

client/modules/IDE/components/Header/Nav.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ const ProjectMenu = () => {
195195
<NavDropdownMenu id="edit" title={t('Nav.Edit.Title')}>
196196
<NavMenuItem onClick={cmRef.current?.tidyCode}>
197197
{t('Nav.Edit.TidyCode')}
198-
<span className="nav__keyboard-shortcut">
199-
{metaKeyName}+{'\u21E7'}+F
200-
</span>
198+
<span className="nav__keyboard-shortcut">{metaKeyName}+Shift+F</span>
201199
</NavMenuItem>
202200
<NavMenuItem onClick={cmRef.current?.showFind}>
203201
{t('Nav.Edit.Find')}
@@ -222,7 +220,7 @@ const ProjectMenu = () => {
222220
<NavMenuItem onClick={() => dispatch(stopSketch())}>
223221
{t('Nav.Sketch.Stop')}
224222
<span className="nav__keyboard-shortcut">
225-
{'\u21E7'}+{metaKeyName}+Enter
223+
Shift+{metaKeyName}+Enter
226224
</span>
227225
</NavMenuItem>
228226
</NavDropdownMenu>

client/modules/IDE/components/KeyboardShortcutModal.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function KeyboardShortcutModal() {
2525
<ul className="keyboard-shortcuts__list">
2626
<li className="keyboard-shortcut-item">
2727
<span className="keyboard-shortcut__command">
28-
{metaKeyName} + {'\u21E7'} + F
28+
{metaKeyName} + Shift + F
2929
</span>
3030
<span>{t('KeyboardShortcuts.CodeEditing.Tidy')}</span>
3131
</li>
@@ -39,7 +39,7 @@ function KeyboardShortcutModal() {
3939
</li>
4040
<li className="keyboard-shortcut-item">
4141
<span className="keyboard-shortcut__command">
42-
{metaKeyName} + {'\u21E7'} + G
42+
{metaKeyName} + Shift + G
4343
</span>
4444
<span>
4545
{t('KeyboardShortcuts.CodeEditing.FindPreviousTextMatch')}
@@ -84,24 +84,24 @@ function KeyboardShortcutModal() {
8484
</li>
8585
<li className="keyboard-shortcut-item">
8686
<span className="keyboard-shortcut__command">
87-
{metaKeyName} + {'\u21E7'} + Enter
87+
{metaKeyName} + Shift + Enter
8888
</span>
8989
<span>{t('KeyboardShortcuts.General.StopSketch')}</span>
9090
</li>
9191
<li className="keyboard-shortcut-item">
9292
<span className="keyboard-shortcut__command">
93-
{metaKeyName} + {'\u21E7'} + 1
93+
{metaKeyName} + Shift + 1
9494
</span>
9595
<span>{t('KeyboardShortcuts.General.TurnOnAccessibleOutput')}</span>
9696
</li>
9797
<li className="keyboard-shortcut-item">
9898
<span className="keyboard-shortcut__command">
99-
{metaKeyName} + {'\u21E7'} + 2
99+
{metaKeyName} + Shift + 2
100100
</span>
101101
<span>{t('KeyboardShortcuts.General.TurnOffAccessibleOutput')}</span>
102102
</li>
103103
<li className="keyboard-shortcut-item">
104-
<span className="keyboard-shortcut__command">{'\u21E7'} + Right</span>
104+
<span className="keyboard-shortcut__command">Shift + Right</span>
105105
<span>Go to Reference for Selected Item in Hinter</span>
106106
</li>
107107
</ul>

client/utils/metaKey.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ const metaKey = (() => {
66
return 'Ctrl';
77
})();
88

9-
const metaKeyName = metaKey === 'Cmd' ? '⌘' : '';
9+
const metaKeyName = metaKey === 'Cmd' ? '⌘' : 'Ctrl';
1010

1111
export { metaKey, metaKeyName };

0 commit comments

Comments
 (0)