Skip to content

Add keyboard shortcut for toggling word wrap in code viewer #7

@kanweiwei

Description

@kanweiwei

The code viewer has a word wrap toggle but no keyboard shortcut. Adding one would improve the editing experience.

What to do:

  1. Read web/src/components/workspace/KeyboardShortcutsHelp.tsx to understand the shortcuts system
  2. Read web/src/hooks/useKeyboardShortcuts.ts to understand how shortcuts are registered
  3. Find the word wrap toggle logic (likely in workspace settings or display settings)
  4. Add a keyboard shortcut (e.g., Alt+Z which is standard in editors)
  5. Update the shortcuts help panel to show the new shortcut
  6. Update the i18n strings if needed

Skills needed: React, TypeScript, understanding of keyboard event handling

Estimated time: 1-2 hours

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions