From ea673ff23313f8fb752be8554965d77f2ccdf16a Mon Sep 17 00:00:00 2001 From: AA <56989661+ChengranAA@users.noreply.github.com> Date: Tue, 16 Jun 2026 17:55:07 +0200 Subject: [PATCH] Fix copy shortcut in macOS notebook cells (#59431) Fix `cmd-c` not copying text inside macOS notebook cell editors. Previously, the macOS notebook keymap bound `cmd-c` to `notebook::InterruptKernel` in notebook contexts, including `NotebookEditor > Editor`. This shadowed the normal editor copy shortcut while editing notebook cells. ## Solution Move the macOS notebook interrupt shortcut from `cmd-c` to `ctrl-c`. This keeps the notebook interrupt shortcut available while allowing the normal editor keybindings to handle: - `cmd-c` for copy - `cmd-x` for cut - `cmd-v` for paste inside notebook cell editors. - This change is macOS-specific. Release Notes: - N/A --------- Co-authored-by: dino --- assets/keymaps/default-linux.json | 1 - assets/keymaps/default-macos.json | 1 - assets/keymaps/default-windows.json | 1 - 3 files changed, 3 deletions(-) diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index 9e735bdd9d5..e8db12b6fbb 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -1495,7 +1495,6 @@ "ctrl-m": "notebook::AddCodeBlock", "ctrl-shift-m": "notebook::AddMarkdownBlock", "ctrl-shift-r": "notebook::RestartKernel", - "ctrl-c": "notebook::InterruptKernel", "escape": "notebook::EnterCommandMode", }, }, diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index 1a77bdbbcde..b9999625891 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -1633,7 +1633,6 @@ "cmd-m": "notebook::AddCodeBlock", "cmd-shift-m": "notebook::AddMarkdownBlock", "cmd-shift-r": "notebook::RestartKernel", - "cmd-c": "notebook::InterruptKernel", "escape": "notebook::EnterCommandMode", }, }, diff --git a/assets/keymaps/default-windows.json b/assets/keymaps/default-windows.json index f12157e68e3..a4d75c8da1d 100644 --- a/assets/keymaps/default-windows.json +++ b/assets/keymaps/default-windows.json @@ -1558,7 +1558,6 @@ "ctrl-m": "notebook::AddCodeBlock", "ctrl-shift-m": "notebook::AddMarkdownBlock", "ctrl-shift-r": "notebook::RestartKernel", - "ctrl-c": "notebook::InterruptKernel", "escape": "notebook::EnterCommandMode", }, },