devtrack icon indicating copy to clipboard operation
devtrack copied to clipboard

[FEAT] Add keyboard shortcut (e.g., Cmd/Ctrl + K) to toggle Dark/Light theme globally

Open Hiral-Barot opened this issue 5 months ago • 11 comments

Problem Statement

Summary

Improve dashboard accessibility and UX by adding a global keyboard listener that allows users to toggle between Light and Dark mode seamlessly using the Ctrl + Shift + T or Cmd + Shift + T key combination.

Proposed Solution

Proposed Changes

  • Create a custom hook useThemeShortcut.ts or add a useEffect global event listener to the main layout layout wrappers.
  • Detect the specific modifier key press event and trigger the existing Redux action/theme state dispatcher toggling dark/light modes.
  • Add a tiny tool-tip hint next to the visual theme toggle button to inform users about the shortcut availability.

@Priyanshu-byte-coder could you please assign this task to me?

Feature Area

Dashboard

Alternatives Considered

No response

Acceptance Criteria

Acceptance Criteria

  • Toggling works seamlessly across all pages when input fields are not focused (ensure typing in input fields doesn't trigger it accidentally).
  • Clean event handler cleanup to prevent any memory leaks.

Additional Context

No response

Hiral-Barot avatar Jun 20 '26 15:06 Hiral-Barot

hi i would like to work on it under gssoc'26

yachikadev avatar Jun 20 '26 15:06 yachikadev

/assign i would like to work on this issue under gssoc 2026

Doremon-tech-svg avatar Jun 20 '26 16:06 Doremon-tech-svg

Assigned to @Doremon-tech-svg! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!

github-actions[bot] avatar Jun 20 '26 16:06 github-actions[bot]

Hey @Doremon-tech-svg — this issue was assigned 7 days ago with no PR opened. Unassigning so others can pick it up.

Still working on it? Drop a comment and request re-assignment.

github-actions[bot] avatar Jul 14 '26 04:07 github-actions[bot]

Hi @Priyanshu-byte-coder Please assign me this issue.

Bhavy12-cell avatar Jul 14 '26 13:07 Bhavy12-cell

Assigned to @Bhavy12-cell! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!

github-actions[bot] avatar Jul 14 '26 13:07 github-actions[bot]

Hey @Bhavy12-cell — this issue was assigned 7 days ago with no PR opened. Unassigning so others can pick it up.

Still working on it? Drop a comment and request re-assignment.

github-actions[bot] avatar Jul 22 '26 05:07 github-actions[bot]

Hey @Hiral-Barot, @Bhavy12-cell, @Doremon-tech-svg, @yachikadev — this issue was assigned a while back with no recent activity. Unassigning so it's available for Hacktoberfest contributors. Still working on it? Comment and we'll reassign you.

Priyanshu-byte-coder avatar Oct 14 '26 17:10 Priyanshu-byte-coder

@Priyanshu-byte-coder This issue is already taken by @Hiral-Barot, @Bhavy12-cell, @Doremon-tech-svg, @yachikadev. Check other open issues!

github-actions[bot] avatar Oct 14 '26 17:10 github-actions[bot]

This issue has been inactive for 21 days. If you are still working on it or it is still relevant, please leave a comment — otherwise it will be closed in 7 days.

github-actions[bot] avatar Nov 05 '26 04:11 github-actions[bot]

Closing due to inactivity. Feel free to reopen if this is still relevant.

github-actions[bot] avatar Nov 12 '26 05:11 github-actions[bot]