Skip to content

JetBrains keymap: Add escape key binding to cancel in auto_height mode#45306

Merged
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
tacshi:fix/jetbrains_escape_key
Feb 5, 2026
Merged

JetBrains keymap: Add escape key binding to cancel in auto_height mode#45306
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
tacshi:fix/jetbrains_escape_key

Conversation

@tacshi
Copy link
Contributor

@tacshi tacshi commented Dec 18, 2025

Closes #45299

Release Notes:

  • Fix Escape key does not cancel/dismiss inline assist with Jetbrains keymap

Recording:

Zed.Escape.mp4

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 18, 2025
@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Jan 5, 2026
@ConradIrwin ConradIrwin changed the title Add escape key binding to cancel in auto_height mode JetBrains keymap: Add escape key binding to cancel in auto_height mode Feb 5, 2026
@ConradIrwin ConradIrwin enabled auto-merge (squash) February 5, 2026 05:14
@ConradIrwin
Copy link
Member

Thanks!

@zed-industries-bot
Copy link
Contributor

zed-industries-bot commented Feb 5, 2026

Messages
📖

This PR includes links to the following GitHub Issues: #45299
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against 55f7722

@SomeoneToIgnore
Copy link
Contributor

Looks like this needs a rebase.

auto-merge was automatically disabled February 5, 2026 09:26

Head branch was pushed to by a user without write access

Copilot AI review requested due to automatic review settings February 5, 2026 09:26
@tacshi tacshi force-pushed the fix/jetbrains_escape_key branch from e428e6b to 55f7722 Compare February 5, 2026 09:26
@tacshi
Copy link
Contributor Author

tacshi commented Feb 5, 2026

Looks like this needs a rebase.

Done

@SomeoneToIgnore SomeoneToIgnore enabled auto-merge (squash) February 5, 2026 09:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #45299 where the Escape key does not cancel/dismiss the inline assist prompt when using the JetBrains keymap. The issue occurred because the escape key was bound to editor::ToggleFocus for editors in auto_height mode (which includes the inline assistant) instead of editor::Cancel.

Changes:

  • Split the compound context condition for escape key bindings in JetBrains keymap
  • Added specific escape: editor::Cancel binding for Editor && mode == auto_height context
  • Applied changes consistently to both macOS and Linux JetBrains keymaps

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
assets/keymaps/macos/jetbrains.json Removed auto_height mode from general dock/workspace escape binding and added dedicated binding with editor::Cancel for auto_height editors
assets/keymaps/linux/jetbrains.json Removed auto_height mode from general dock/workspace escape binding and added dedicated binding with editor::Cancel for auto_height editors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SomeoneToIgnore SomeoneToIgnore merged commit 87dff2a into zed-industries:main Feb 5, 2026
32 of 33 checks passed
@tacshi tacshi deleted the fix/jetbrains_escape_key branch February 5, 2026 09:39
rtfeldman pushed a commit that referenced this pull request Feb 5, 2026
#45306)

Closes [#45299](#45299)

Release Notes:

- Fix Escape key does not cancel/dismiss inline assist with Jetbrains
keymap

Recording:


https://github.com/user-attachments/assets/766a9954-2d32-4f43-b81d-acba1cb8e133
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Escape key does not cancel/dismiss inline assist (PromptEditor)

5 participants