Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

ignore cut on linux (#1795)

Myles Scolnick948f349120a7
diff --git a/frontend/src/core/vscode/vscode-bindings.ts b/frontend/src/core/vscode/vscode-bindings.ts
index bc6679ab00..19d28add0d 100644
--- a/frontend/src/core/vscode/vscode-bindings.ts
+++ b/frontend/src/core/vscode/vscode-bindings.ts
@@ -71,7 +71,9 @@ function registerKeyboard() {
if ((event.ctrlKey || event.metaKey) && event.key === "x") {
const selection = window.getSelection()?.toString() ?? "";
// clear
- document.execCommand("insertText", false, "");
+ if (isPlatformMac()) {
+ document.execCommand("insertText", false, "");
+ }
sendToPanelManager({
command: "cut",
text: selection,