From 7edc2df79392a24a1992d2cfa3a2651eb29c7b41 Mon Sep 17 00:00:00 2001 From: ChengranAA Date: Tue, 16 Jun 2026 16:51:58 +0200 Subject: [PATCH 1/3] change interrupt kenrnel shortcut for macos --- assets/keymaps/default-macos.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index 1a77bdbbcdeda0..d6d4c5f376583c 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -1610,7 +1610,7 @@ "cmd-m": "notebook::AddCodeBlock", "cmd-shift-m": "notebook::AddMarkdownBlock", "cmd-shift-r": "notebook::RestartKernel", - "cmd-c": "notebook::InterruptKernel", + "ctrl-c": "notebook::InterruptKernel", }, }, { @@ -1633,7 +1633,7 @@ "cmd-m": "notebook::AddCodeBlock", "cmd-shift-m": "notebook::AddMarkdownBlock", "cmd-shift-r": "notebook::RestartKernel", - "cmd-c": "notebook::InterruptKernel", + "ctrl-c": "notebook::InterruptKernel", "escape": "notebook::EnterCommandMode", }, }, From 7e5ec167a0d6a58f2f9340349dea05be3a47547a Mon Sep 17 00:00:00 2001 From: dino Date: Tue, 16 Jun 2026 16:42:58 +0100 Subject: [PATCH 2/3] refactor: remove bindings for kernel interruption in notebook editor Remove all bindings of `notebook::InterruptKernel` for the `NotebookEditor > Editor` context. The original change was simply updating the default macOS keymap to use `ctrl-c` instead of `cmd-c` in order to avoid breaking copy behavior while focused on an editor. Although this was fine for macOS, the issue would still be present on both Windows and Linux, where `ctrl-c` is bound to `editor::Copy` by default, but was now bound to `notebook::InterruptKernel` on `NotebookEditor > Editor`. As such, in order to avoid this issue in any platform, this commit removes any of the `cmd-c`/`ctrl-c` binds to `notebook::InterruptKernel` in the `NotebookEditor > Editor` in order for it to match the default `Editor` context instead and simply copy the selection if the user is focused on an editor. --- 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 9e735bdd9d5374..e8db12b6fbb573 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 d6d4c5f376583c..5cc725f66a77bf 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", - "ctrl-c": "notebook::InterruptKernel", "escape": "notebook::EnterCommandMode", }, }, diff --git a/assets/keymaps/default-windows.json b/assets/keymaps/default-windows.json index f12157e68e3f61..a4d75c8da1dfeb 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", }, }, From 6e04b27a7afd7fc1f22fe5b299f701ca450fd21b Mon Sep 17 00:00:00 2001 From: dino Date: Tue, 16 Jun 2026 16:44:14 +0100 Subject: [PATCH 3/3] chore: revert interrupt kernel binding on macOS --- assets/keymaps/default-macos.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index 5cc725f66a77bf..b99996258913cf 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -1610,7 +1610,7 @@ "cmd-m": "notebook::AddCodeBlock", "cmd-shift-m": "notebook::AddMarkdownBlock", "cmd-shift-r": "notebook::RestartKernel", - "ctrl-c": "notebook::InterruptKernel", + "cmd-c": "notebook::InterruptKernel", }, }, {