Skip to content

[FEAT] Add keyboard shortcuts to switch between HTML, CSS, and JS editor tabs #141

@devendra-w

Description

@devendra-w

Problem

Currently users have to click on tabs to switch between HTML, CSS, and JS editors. There are no keyboard shortcuts for this, which slows down the workflow.

Expected Behaviour

  • Ctrl+1 → switch to HTML tab
  • Ctrl+2 → switch to CSS tab
  • Ctrl+3 → switch to JS tab

Implementation Notes

  • Add a keydown event listener in the main page component
  • Map Ctrl+1/2/3 to setActiveTab("html"/"css"/"javascript")
  • Make sure it doesn't conflict with existing shortcuts

Difficulty

Intermediate

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions