Skip to content

Switch "undo chat edits" to use Alt+Backspace on Linux #249991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

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.

Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Error loading sessions

Retrying...

Successfully merging this pull request may close these issues.

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