Skip to content

Commit 7d4d7f4

Browse files
committed
Added a keyboard shortcut for adding files
1 parent 87742de commit 7d4d7f4

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

client/modules/IDE/components/Header/__snapshots__/Nav.unit.test.jsx.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,11 @@ exports[`Nav renders editor version for desktop 1`] = `
367367
>
368368
<button>
369369
Add File
370+
<span
371+
class="nav__keyboard-shortcut"
372+
>
373+
⇧+N
374+
</span>
370375
</button>
371376
</li>
372377
<li

client/modules/IDE/components/KeyboardShortcutModal.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ function KeyboardShortcutModal() {
6969
<span className="keyboard-shortcut__command">{metaKeyName} + K</span>
7070
<span>{t('KeyboardShortcuts.CodeEditing.ColorPicker')}</span>
7171
</li>
72+
<li className="keyboard-shortcut-item">
73+
<span className="keyboard-shortcut__command">{'\u21E7'} + N</span>
74+
<span>{t('KeyboardShortcuts.CodeEditing.CreateNewFile')}</span>
75+
</li>
7276
</ul>
7377
<h3 className="keyboard-shortcuts__title">General</h3>
7478
<ul className="keyboard-shortcuts__list">

translations/locales/en-US/translations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@
192192
"FindNextTextMatch": "Find Next Text Match",
193193
"FindPreviousTextMatch": "Find Previous Text Match",
194194
"CodeEditing": "Code Editing",
195-
"ColorPicker": "Show Inline Color Picker"
195+
"ColorPicker": "Show Inline Color Picker",
196+
"CreateNewFile": "Create New File"
196197
},
197198
"General": {
198199
"StartSketch": "Start Sketch",

0 commit comments

Comments
 (0)