Fix `ctrl-delete` in terminal (#30720)

Aleksei Gusev created

Closes #30719

Release Notes:

- Fixed `ctrl-delete` in terminal, now it deletes a word forward

Change summary

assets/keymaps/default-linux.json | 1 +
assets/keymaps/default-macos.json | 1 +
2 files changed, 2 insertions(+)

Detailed changes

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"],

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"],