Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to change between add, edit, delete functionality using keyboard shortcuts #2

Open
nicolasperez19 opened this issue Oct 25, 2024 · 0 comments · May be fixed by #28
Open
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@nicolasperez19
Copy link
Owner

No description provided.

@nicolasperez19 nicolasperez19 added the enhancement New feature or request label Oct 25, 2024
@nicolasperez19 nicolasperez19 added this to the Enhancements milestone Oct 25, 2024
@nicolasperez19 nicolasperez19 added the good first issue Good for newcomers label Oct 30, 2024
nkzarrabi referenced this issue in nkzarrabi/mic-master-flex Oct 31, 2024
Fixes #2

Add keyboard shortcuts for changing between add, edit, delete functionality.

* **MicMasterFlex.tsx**
  - Import `useEffect` from React.
  - Add `useEffect` to handle keyboard event listeners for mode changes.
  - Add event listener for 'keydown' event to switch modes based on key pressed ('1' for Pan, '2' for Add, '3' for Edit, '4' for Delete).
  - Add cleanup function to remove event listeners on component unmount.

* **README.md**
  - Add section to document new keyboard shortcuts for changing modes.
  - Update table of contents to include the new section on keyboard shortcuts.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/nicolasperez19/mic-master-flex/issues/2?shareId=XXXX-XXXX-XXXX-XXXX).
@nkzarrabi nkzarrabi linked a pull request Oct 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant