Skip to content

Bug: Undo and Redo Keyboard shortcuts not working as expected (CUA standard) #86

@maddes8cht

Description

@maddes8cht

Bug: Undo and Redo shortcuts ctrl-z and ctrl-y not behaving as expected

Description

I really appreciate Turbo's commitment to implementing the CUA (Common User Access) standard in a terminal editor — especially the top menu bar and familiar shortcuts. Most of the standard editing shortcuts (Cut, Copy, Paste) work perfectly with their expected keybindings (e.g., Ctrl+X, Ctrl+C, Ctrl+V).

However, there seems to be an inconsistency with the Undo and Redo shortcuts:

  • Ctrl+Z does not trigger an undo. The action only works when using the menu: Edit > Undo.
  • Ctrl+Y only works when combined with Shift, i.e., Ctrl+Shift+Y is required. This is not in line with the CUA standard where Ctrl+Y (without Shift) should perform Redo.

This breaks expectations for users familiar with common editors, and also creates inconsistency within Turbo itself, where all other CUA shortcuts behave correctly.

Expected behavior

  • Ctrl+Z should perform Undo.
  • Ctrl+Y (without Shift) should perform Redo.

Actual behavior

  • Ctrl+Z does nothing.
  • Ctrl+Y does not work unless Shift is also pressed.

Environment

  • Terminal: VSCode integrated terminal / Windows Terminal
  • OS: Windows 10 / 11 (tested on both)
  • Turbo version: lates currently available build from actions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions