Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented May 28, 2025

This PR changes the "undo chat edits" keybinding on Linux to use Alt+Backspace instead of Ctrl+Backspace, similar to how it's already set for Windows.

The Issue

Ctrl+Backspace is used for deleteWordLeft in GUI apps on Linux (just as on Windows), so using this keybinding for "undo chat edits" creates a conflict.

Changes Made

  1. Modified keybindings in KeepOrUndoAction class:

    • Changed primary keybinding from Ctrl+Backspace to Alt+Backspace
    • Moved Mac-specific keybinding (Cmd+Backspace) to mac.primary
  2. Modified keybindings in AcceptRejectHunkAction class:

    • Changed primary keybinding from Ctrl+Shift+Backspace to Alt+Shift+Backspace
    • Moved Mac-specific keybinding (Cmd+Shift+Backspace) to mac.primary

These changes maintain the same keyboard shortcuts on Mac, while ensuring both Windows and Linux use Alt+Backspace instead of Ctrl+Backspace.

Fixes #249990.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@Copilot Copilot AI changed the title [WIP] Switch "undo chat edits" to use Alt+Backspace on Linux Switch "undo chat edits" to use Alt+Backspace on Linux May 28, 2025
@Copilot Copilot AI requested a review from DanielRosenwasser May 28, 2025 15:16
Copilot finished work on behalf of DanielRosenwasser May 28, 2025 15:16
@DanielRosenwasser DanielRosenwasser requested a review from jrieken May 28, 2025 15:56
@DanielRosenwasser DanielRosenwasser marked this pull request as ready for review May 28, 2025 22:23
@vs-code-engineering vs-code-engineering bot added this to the May 2025 milestone May 28, 2025
@jrieken
Copy link
Member

jrieken commented Jun 9, 2025

closing as obsolete, we went with Y and N based keybindings

@jrieken jrieken closed this Jun 9, 2025
@DanielRosenwasser
Copy link
Member

Right, #250635 took care of this.

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch "undo chat edits" to use Alt+Backspace on Linux
3 participants