[GH-ISSUE #4678] [bug]: Using ALT + Up/Down arrow in body also changes request type #1740

Closed
opened 2026-03-16 21:34:34 +03:00 by kerem · 2 comments
Owner

Originally created by @anedyasystems on GitHub (Jan 17, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4678

Originally assigned to: @SharadSaha on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I use ALT + Up/Down arrow key in request body to rearrange lines in body, it changes request type as well.
Consider this scenario:

Image

Now in test2 line I used ALT + Up Key:

Image

Notice, request type is also changed to POST

Steps to reproduce

  1. Set a request type, say "GET"
  2. Add multiple lines in body, in my case I added JSON
  3. Reorder JSON field text line using shortcut ALT + Up/Down
  4. Observe request type

Environment

Production

Version

Cloud

Originally created by @anedyasystems on GitHub (Jan 17, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4678 Originally assigned to: @SharadSaha on GitHub. ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current behavior When I use ALT + Up/Down arrow key in request body to rearrange lines in body, it changes request type as well. Consider this scenario: ![Image](https://github.com/user-attachments/assets/7501f122-63fa-4a58-9183-ea8c038cfc5c) Now in `test2` line I used ALT + Up Key: ![Image](https://github.com/user-attachments/assets/e6565edc-05ad-453d-909e-6b6cedfaac4d) Notice, request type is also changed to POST ### Steps to reproduce 1. Set a request type, say "GET" 2. Add multiple lines in body, in my case I added JSON 3. Reorder JSON field text line using shortcut ALT + Up/Down 4. Observe request type ### Environment Production ### Version Cloud
kerem 2026-03-16 21:34:34 +03:00
Author
Owner

@SharadSaha commented on GitHub (Jul 6, 2025):

@liyasthomas I have raised a PR to close this, restricting alt+up and alt+down functions (which have custom implementations in codemirror), please let me know if it's fine, or a more generic approach has to be taken. Would really appreciate a PR review.

<!-- gh-comment-id:3041591913 --> @SharadSaha commented on GitHub (Jul 6, 2025): @liyasthomas I have raised a PR to close this, restricting alt+up and alt+down functions (which have custom implementations in codemirror), please let me know if it's fine, or a more generic approach has to be taken. Would really appreciate a PR review.
Author
Owner

@jamesgeorge007 commented on GitHub (Jul 16, 2025):

Hi, closing this issue since it's addressed in the latest release.

<!-- gh-comment-id:3078796929 --> @jamesgeorge007 commented on GitHub (Jul 16, 2025): Hi, closing this issue since it's addressed in the latest release.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1740
No description provided.