zed icon indicating copy to clipboard operation
zed copied to clipboard

When the Ctrl key is released, line scrolling continues while the up/down keys are held down

Open weijarz opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

  1. Keep current cursor on first line (ctrl + home).
  2. Press ctrl + down to line-scroll the editor.
  3. Release the ctrl key, bu keep the down key pressed. In other editors, it will switch to moving cursor mode, but in Zed, it will still line-scrolling.

This is different from the behavior of all the editors I've used, if this isn't a bug it's a feature I hope there's an option to turn off it.

Environment

Zed: v0.149.3 (Zed) OS: Linux Wayland arch unknown Memory: 15.4 GiB Architecture: x86_64 GPU: Intel(R) Graphics (ADL-N) || Intel open-source Mesa driver || Mesa 24.1.5-arch1.1

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

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

No response

weijarz avatar Aug 20 '24 09:08 weijarz

Curious which editor(s) implement this. Currently Zed matches the behavior of VSCode. For example on MacOS ctrl-fn-down scrolls without moving the cursor but subsequent down moves the cursor.

notpeter avatar Aug 23 '24 14:08 notpeter

@notpeter I mean currently on my device Zed is the behavior I'm talking about. It could be that the behavior is the same as vscode on MacOS (I don't have MacOS to test it), but on my device (Linux/GNOME/Wayland) the behavior is different from vscode (Release the ctrl key, but keep the down key pressed will continue to scroll and will not move the cursor, it's annoying behavior).

weijarz avatar Aug 24 '24 00:08 weijarz