Skip to content

Commit 0fcd484

Browse files
committed
Fix special key omission
1 parent 6a9a66b commit 0fcd484

File tree

1 file changed

+11
-4
lines changed
  • src/_includes/docs/install/test-drive

1 file changed

+11
-4
lines changed

src/_includes/docs/install/test-drive/vscode.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
2. Open the Command Palette.
1010

1111
Go to **View** <span aria-label="and then">></span> **Command Palette** or
12-
press <kbd>{{special}}</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>.
12+
press <kbd class="special-key"></kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>.
1313

14-
3. Type `flutter`
14+
3. Type `flutter`.
1515

1616
4. Select the **Flutter: New Project**.
1717

@@ -46,9 +46,9 @@ hot reload at this time.
4646
1. Open the Command Palette.
4747

4848
Go to **View** <span aria-label="and then">></span> **Command Palette** or
49-
press <kbd>{{special}}</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>.
49+
press <kbd class="special-key"></kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>.
5050

51-
1. Type `flutter`
51+
1. Type `flutter`.
5252

5353
1. Select the **Flutter: Select Device**.
5454

@@ -74,3 +74,10 @@ hot reload at this time.
7474
[Material Components]: {{site.material}}/components
7575

7676
</div>
77+
78+
<script>
79+
document.addEventListener("DOMContentLoaded", function() {
80+
const specialKey = navigator.userAgent.includes('Mac')? 'Command' : 'Control';
81+
document.querySelectorAll('.special-key').forEach((element)=>element.textContent=specialKey);
82+
});
83+
</script>

0 commit comments

Comments
 (0)