From a6e579db72f15b01a6aaa8e34513706ec74d9daa Mon Sep 17 00:00:00 2001 From: Aleksei Gusev Date: Mon, 19 May 2025 16:33:00 +0300 Subject: [PATCH] Fix `ctrl-delete` in terminal (#30720) Closes #30719 Release Notes: - Fixed `ctrl-delete` in terminal, now it deletes a word forward --- assets/keymaps/default-linux.json | 1 + assets/keymaps/default-macos.json | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index 102d481a3967249adf5a53fa276be75dc517f00f..7868b19e89b69ad6cbe5ee90be8097aa02ed0670 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -928,6 +928,7 @@ "alt-b": ["terminal::SendText", "\u001bb"], "alt-f": ["terminal::SendText", "\u001bf"], "alt-.": ["terminal::SendText", "\u001b."], + "ctrl-delete": ["terminal::SendText", "\u001bd"], // Overrides for conflicting keybindings "ctrl-b": ["terminal::SendKeystroke", "ctrl-b"], "ctrl-c": ["terminal::SendKeystroke", "ctrl-c"], diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index 3cf2e54fc9e29b229fcc39513d20e8eed7a8469e..b4aa3449291bc557161ecb2561bc71f969c0cbe3 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -1012,6 +1012,7 @@ "alt-b": ["terminal::SendText", "\u001bb"], "alt-f": ["terminal::SendText", "\u001bf"], "alt-.": ["terminal::SendText", "\u001b."], + "ctrl-delete": ["terminal::SendText", "\u001bd"], // There are conflicting bindings for these keys in the global context. // these bindings override them, remove at your own risk: "up": ["terminal::SendKeystroke", "up"],