Skip to content

🎥 Make videos programmatically with React

document --disable-keyboard-shortcuts

Jonny Burgerdf3fde847893
diff --git a/packages/docs/docs/cli/preview.md b/packages/docs/docs/cli/preview.md
index 984ef027ab..528b249ecc 100644
--- a/packages/docs/docs/cli/preview.md
+++ b/packages/docs/docs/cli/preview.md
@@ -34,3 +34,9 @@ Specify a location for a dotenv file. Default `.env`. Available in v2.2 and late
### `--port`
[Set a custom HTTP server port](/docs/config#setPort). If not defined, Remotion will try to find a free port.
+
+### `--disable-keyboard-shortcuts`
+
+_Available from v3.2.11_
+
+Disables all keyboard shortcuts in the Preview.
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.md
index 05aba0bd6e..00c9f048da 100644
--- a/packages/docs/docs/config.md
+++ b/packages/docs/docs/config.md
@@ -93,10 +93,10 @@ The [command line flag](/docs/cli/render#--log) `--log` will take precedence ove
## Preview
-_Available from Version 2.1.10._
-
### setMaxTimelineTracks()
+_Available from Version 2.1.10._
+
Set how many tracks are being displayed in the timeline at most. This does not affect your video, just the amount of tracks shown when previewing. Default `15`.
```ts twoslash
@@ -105,6 +105,18 @@ import { Config } from "remotion";
Config.Preview.setMaxTimelineTracks(20);
```
+### setKeyboardShortcutsEnabled()
+
+Whether the Preview should react to keyboard shortcuts. Default `true`.
+
+```ts twoslash
+import { Config } from "remotion";
+// ---cut---
+Config.Preview.setKeyboardShortcutsEnabled(false);
+```
+
+The [command line flag](/docs/cli/preview#--disable-keyboard-shortcuts) `--disable-keyboard-shortcuts` will take precedence over this option.
+
## Puppeteer
### setBrowserExecutable()