Skip to content

Windows Alpha: Wrong shortcut recognition #36270

@hisbvdis

Description

@hisbvdis

Summary

Zed recognize Ctrl+Shit+8 shortcut as ctrl-shift-*, but in order to make it work we need to set ctrl-* in keymap.json

Description

Steps to trigger the problem:

  1. Create keybinding for the following keystrokes
{
  "context": "Editor",
  "bindings": {
    // `ctrl-shift-8` (recognized as `ctrl-shift-*`)
    "ctrl-shift-*": "editor::DuplicateLineUp",

    // `ctrl-shift-,` (recognized as `ctrl-shift-<`)
    "ctrl-shift-<": "editor::DuplicateLineDown"
  }
}

Expected Behavior:

  • By pressing ctrl-shift-8 the line should be duplicated above
  • By pressing ctrl-shift-, the line should be duplicated below

Actual Behavior:

  • Nothing happens

Addition comment (IMPORTANT)

I managed to find out, that it works when I specify ctrl-* shortcut.

Image

But to make it work it should rezognize this shortcut as ctrl-*
Working variant

{
  "context": "Editor",
  "bindings": {
    "ctrl-*": "editor::DuplicateLineUp",
    "ctrl-<": "editor::DuplicateLineDown"
  }
}

Zed Version and System Specs

Zed: v0.201.0 (Zed Nightly 485802b)
OS: Windows 10.0.26100
Memory: 27.8 GiB
Architecture: x86_64
GPU: AMD Radeon 780M Graphics || AMD Corporation || 25.8.1 (25.10.25.01-250724a-417878C-AMD-Software-Adrenalin-Edition)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions