From 58ef3fa39bb5e6a6107224f2f92ba9c142a9d259 Mon Sep 17 00:00:00 2001 From: Dino Date: Tue, 7 Apr 2026 18:58:10 +0100 Subject: [PATCH] keymaps: Avoid capturing ctrl-r in the terminal (#53301) Update macOS and Linux's default keymaps such that, in the `Terminal` context, `ctrl-r` does send the `ctrl-r` keystrokes. This was no longer the case with recent changes to enable `ctrl-r` to map to `projects::OpenRecent` which prevented users to use history search in shells like bash and zsh, for example. Release Notes: - N/A --- 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 5ecca68e0404b400af2c285dc51df0a65d6fe07a..11f262d1b4c4f8666d4d4dc5c35769a55801e841 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -1189,6 +1189,7 @@ "ctrl-e": ["terminal::SendKeystroke", "ctrl-e"], "ctrl-o": ["terminal::SendKeystroke", "ctrl-o"], "ctrl-w": ["terminal::SendKeystroke", "ctrl-w"], + "ctrl-r": ["terminal::SendKeystroke", "ctrl-r"], "ctrl-backspace": ["terminal::SendKeystroke", "ctrl-w"], "ctrl-shift-a": "editor::SelectAll", "find": "buffer_search::Deploy", diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index c74b5900001a2c798076783b2741aba84ffc4b15..7466fa31fe52c0ad53a445e251d63aaf5746e778 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -1269,6 +1269,7 @@ "escape": ["terminal::SendKeystroke", "escape"], "enter": ["terminal::SendKeystroke", "enter"], "ctrl-c": ["terminal::SendKeystroke", "ctrl-c"], + "ctrl-r": ["terminal::SendKeystroke", "ctrl-r"], "ctrl-backspace": ["terminal::SendKeystroke", "ctrl-w"], "shift-pageup": "terminal::ScrollPageUp", "cmd-up": "terminal::ScrollPageUp",