Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix special key omission on Get Started/Test Drive page #10721

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/_includes/docs/install/test-drive/vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
2. Open the Command Palette.

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

3. Type `flutter`
3. Type `flutter`.

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

Expand Down Expand Up @@ -46,9 +46,9 @@ hot reload at this time.
1. Open the Command Palette.

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

1. Type `flutter`
1. Type `flutter`.

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

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

</div>

<script>
document.addEventListener("DOMContentLoaded", function() {
const specialKey = navigator.userAgent.includes('Mac')? 'Command' : 'Control';
document.querySelectorAll('.special-key').forEach((element)=>element.textContent=specialKey);
});
</script>
Loading