Skip to content

Conversation

@shivam7147
Copy link
Contributor

Description

  • Added keyboard shortcut support for tool selection in the canvas.
  • Users can now switch between tools (Pen and Eraser) using keyboard keys while focused on the canvas.
  • The active tool visually updates in the Toolbar when changed via shortcuts, and shortcuts are only active when the canvas is focused.

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

Closes #10 — Implement keyboard shortcuts for tool selection.

Checklist

  • I have read the Contributing Guidelines
  • Added keyboard shortcut handling (P/1 for Pen, E/2 for Eraser)
  • Ensured shortcuts only work when the canvas is focused
  • Updated Toolbar to visually reflect the active tool when changed via shortcuts
  • Tested UI and focus behavior manually
Screenshot 2025-10-15 144406

@Ayushivam22 Ayushivam22 merged commit b1bf6aa into OPCODE-Open-Spring-Fest:main Oct 17, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Implement Keyboard Shortcuts for Tools

2 participants