Skip to content

Key binds for "move line" (Alt+Up and Alt+Down) no longer work #672

@jdpieck

Description

@jdpieck

Description

Summary

The keyboard shortcuts for moving lines (Alt+Up and Alt+Down) in the Typst text IDE web editor have stopped functioning. This functionality was previously working in earlier versions of the editor.

Steps to Reproduce

  1. Open the Typst text IDE web editor.
  2. Type some lines of text in the editor.
  3. Place the cursor on any line of text.
  4. Press Alt + Up (or Alt + Down).

Expected Behavior

When Alt + Up is pressed, the current line of text (or the selected lines) should move one line up.
When Alt + Down is pressed, the current line of text (or the selected lines) should move one line down.

Actual Behavior

Pressing Alt + Up or Alt + Down currently has no effect on the text in the editor. The line does not move.

Impact

This bug hinders efficient text editing and code organization, requiring users to manually cut and paste lines, which is a slower and more cumbersome process.

Additional Notes

This issue has been observed within the last couple of months, indicating a regression from previous working versions of the web editor.

Reproduction URL

No response

Browsers

Chrome

OS

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions