Skip to content

Commit 6873109

Browse files
authored
Touchups: Use <kbd> for specifying Keyboard Keys and Shortcuts (facebook#3760)
1 parent cd2cb72 commit 6873109

8 files changed

+8
-8
lines changed

docs/_getting-started-linux-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ This is one way to run your app - you can also run it directly from within Andro
181181
Now that you have successfully run the app, let's modify it.
182182

183183
- Open `App.tsx` in your text editor of choice and edit some lines.
184-
- Press the `R` key twice or select `Reload` from the Dev Menu (`Ctrl + M`) to see your changes!
184+
- Press the <kbd>R</kbd> key twice or select `Reload` from the Dev Menu (<kbd>Ctrl</kbd> + <kbd>M</kbd>) to see your changes!
185185

186186
<h3>That's it!</h3>
187187

docs/_getting-started-macos-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ This is one way to run your app - you can also run it directly from within Andro
196196
Now that you have successfully run the app, let's modify it.
197197

198198
- Open `App.tsx` in your text editor of choice and edit some lines.
199-
- Press the `R` key twice or select `Reload` from the Dev Menu (`⌘M`) to see your changes!
199+
- Press the <kbd>R</kbd> key twice or select `Reload` from the Dev Menu (<kbd>Cmd ⌘</kbd> + <kbd>M</kbd>) to see your changes!
200200

201201
<h3>That's it!</h3>
202202

docs/_getting-started-macos-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ The above command will automatically run your app on the iOS Simulator by defaul
165165
Now that you have successfully run the app, let's modify it.
166166

167167
- Open `App.tsx` in your text editor of choice and edit some lines.
168-
- Hit `⌘R` in your iOS Simulator to reload the app and see your changes!
168+
- Hit <kbd>Cmd ⌘</kbd> + <kbd>R</kbd> in your iOS Simulator to reload the app and see your changes!
169169

170170
### That's it!
171171

docs/_getting-started-windows-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ This is one way to run your app - you can also run it directly from within Andro
214214
Now that you have successfully run the app, let's modify it.
215215

216216
- Open `App.tsx` in your text editor of choice and edit some lines.
217-
- Press the `R` key twice or select `Reload` from the Dev Menu (`Ctrl + M`) to see your changes!
217+
- Press the <kbd>R</kbd> key twice or select `Reload` from the Dev Menu (<kbd>Ctrl</kbd> + <kbd>M</kbd>) to see your changes!
218218

219219
<h3>That's it!</h3>
220220

docs/_integration-with-existing-apps-java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ We also need to pass back button events to React Native:
372372

373373
This allows JavaScript to control what happens when the user presses the hardware back button (e.g. to implement navigation). When JavaScript doesn't handle the back button press, your `invokeDefaultOnBackPressed` method will be called. By default this finishes your `Activity`.
374374

375-
Finally, we need to hook up the dev menu. By default, this is activated by (rage) shaking the device, but this is not very useful in emulators. So we make it show when you press the hardware menu button (use `Ctrl + M` if you're using Android Studio emulator):
375+
Finally, we need to hook up the dev menu. By default, this is activated by (rage) shaking the device, but this is not very useful in emulators. So we make it show when you press the hardware menu button (use <kbd>Ctrl</kbd> + <kbd>M</kbd> if you're using Android Studio emulator):
376376

377377
```java
378378
@Override

docs/_integration-with-existing-apps-kotlin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ override fun onBackPressed() {
349349

350350
This allows JavaScript to control what happens when the user presses the hardware back button (e.g. to implement navigation). When JavaScript doesn't handle the back button press, your `invokeDefaultOnBackPressed` method will be called. By default this finishes your `Activity`.
351351

352-
Finally, we need to hook up the dev menu. By default, this is activated by (rage) shaking the device, but this is not very useful in emulators. So we make it show when you press the hardware menu button (use `Ctrl + M` if you're using Android Studio emulator):
352+
Finally, we need to hook up the dev menu. By default, this is activated by (rage) shaking the device, but this is not very useful in emulators. So we make it show when you press the hardware menu button (use <kbd>Ctrl</kbd> + <kbd>M</kbd> if you're using Android Studio emulator):
353353

354354
```kotlin
355355
override fun onKeyUp(keyCode: Int, event: KeyEvent?): Boolean {

docs/publishing-to-app-store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The static bundle is built every time you target a physical device, even in Debu
4848

4949
### 3. Build app for release
5050

51-
You can now build your app for release by tapping `⌘B` or selecting **Product****Build** from the menu bar. Once built for release, you'll be able to distribute the app to beta testers and submit the app to the App Store.
51+
You can now build your app for release by tapping <kbd>Cmd ⌘</kbd> + <kbd>B</kbd> or selecting **Product****Build** from the menu bar. Once built for release, you'll be able to distribute the app to beta testers and submit the app to the App Store.
5252

5353
:::info
5454
You can also use the `React Native CLI` to perform this operation using the option `--mode` with the value `Release` (e.g. from the root of your project: `npm run ios -- --mode="Release"` or `yarn ios --mode Release`).

docs/running-on-device.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ Select your project in the Xcode Project Navigator, then select your main target
378378

379379
### 3. Build and Run your app
380380

381-
If everything is set up correctly, your device will be listed as the build target in the Xcode toolbar, and it will also appear in the Devices pane (`⇧⌘2`). You can now press the **Build and run** button (`⌘R`) or select **Run** from the **Product** menu. Your app will launch on your device shortly.
381+
If everything is set up correctly, your device will be listed as the build target in the Xcode toolbar, and it will also appear in the Devices pane (<kbd>Shift ⇧</kbd> + <kbd>Cmd ⌘</kbd> + <kbd>2</kbd>). You can now press the **Build and run** button (<kbd>Cmd ⌘</kbd> + <kbd>R</kbd>) or select **Run** from the **Product** menu. Your app will launch on your device shortly.
382382

383383
![](/docs/assets/RunningOnDeviceReady.png)
384384

0 commit comments

Comments
 (0)