Skip to content

Keymap: Ctrl+Shift+E doesn't toggle focus #43151

@albertosantini

Description

@albertosantini

Summary

Ctrl+Shift+E doesn't toggle focus on Project Panel.

Description

This happens when you are not in the usual Editor Panel. and you try to navigate the sidebar, switching from Outline Panel or from Git Panel to Project Panel.

Indeed, if you switch to Outline Panel the focus is on the Filter input or if you switch to Git Panel the focus is on the commit area, Ctrl+Shift+E fires editor::ToggleEditorPrediction and not project_panel::ToggleFocus, due to the precedence of the context.

Image

Steps to reproduce:

  1. Click on Project Panel icon of the sidebar
  2. Ctrl+Shift+G or Ctrl+Shift+B toggling focus to Git Panel or Outline Panel
  3. Ctrl+Shift+E is a no-operation and it doesn't toggle focus to the Project Panel

Expected Behavior:

Toggling focus on the Project Panel.

Actual Behavior:

It doesn't toggle focus on the Project Panel

Solution

Add to the keymap.json (using VSCode base keymap)

  {
    "context": "Editor && mode != full",
    "bindings": {
      "ctrl-shift-e": "project_panel::ToggleFocus"
    }
  }

Zed Version and System Specs

Zed: v0.213.3 (Zed)
OS: Windows 10.0.26200
Memory: 15.8 GiB
Architecture: x86_64
GPU: Intel(R) UHD Graphics 620 || Intel Corporation || 31.0.101.2135

If applicable, attach your Zed.log file to this issue.

Zed.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:controls/keybindsKeyboard shortcuts, mapping, binding, keymaps, etcfrequency:uncommonBugs that happen for a subset of users, specific configurations, rare circumstances, etcplatform:windowspriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugs

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions