Skip to content
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

alt+arrow shortcut does not work #25356

Open
Chuong98CC opened this issue Feb 21, 2025 · 0 comments
Open

alt+arrow shortcut does not work #25356

Chuong98CC opened this issue Feb 21, 2025 · 0 comments

Comments

@Chuong98CC
Copy link

Chuong98CC commented Feb 21, 2025

Summary

Try to use the shortcut Alt-Up/Down for editor:MoveLineUp/Down but does not work.
This works in VSCode so no problem with keyboard or OS.
Instead if change the shortcut to Ctrl+Up/Down then it works.

Keymap.json

  {
    "context": "Editor",
    "bindings": {
      // "j k": ["workspace::SendKeystrokes", "escape"]
      "alt-shift-up": "editor::DuplicateLineUp", // this does not work
      "alt-shift-down": "editor::DuplicateLineDown", // this does not work
      "alt-up": "editor::MoveLineUp", // this does not work
      "ctrl-down": "editor::MoveLineDown", // this works
    }
  }

Steps to trigger the problem:

  1. open code
  2. move cursor to anyline
  3. press alt-up/down arrow

Actual Behavior:
No thing changes
Expected Behavior:
Move line up or down.

Zed Version and System Specs

Zed: v0.174.6 (Zed)
OS: macOS 15.3.0
Memory: 16 GiB
Architecture: aarch64

@Chuong98CC Chuong98CC changed the title alt+arrow short cut does not work alt+arrow shortcut does not work Feb 21, 2025
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

No branches or pull requests

1 participant