Skip to content

feat : add global keyboard shortcut Alt+T to toggle theme#1009

Closed
tmdeveloper007 wants to merge 3 commits into
Priyanshu-byte-coder:mainfrom
tmdeveloper007:#977
Closed

feat : add global keyboard shortcut Alt+T to toggle theme#1009
tmdeveloper007 wants to merge 3 commits into
Priyanshu-byte-coder:mainfrom
tmdeveloper007:#977

Conversation

@tmdeveloper007
Copy link
Copy Markdown
Contributor

Closes #977.

Summary of What Has Been Done:
Implemented the requested keyboard shortcut to toggle dark/light mode via Alt + T globally, and updated the keyboard shortcuts panel modal to list the new shortcut keys clearly.

Changes Made:

  • Modified src/components/KeyboardShortcuts.tsx key event listener to require e.altKey when t is pressed.
  • Updated src/components/ShortcutsModal.tsx key item display for theme toggling from T to Alt + T.

Impact it Made:
Allows power users to seamlessly toggle application themes globally using the Alt + T hotkey (or Option + T on Mac) without any conflicts with standard keyboard inputs when typing in inputs/textareas, and integrates beautifully with the built-in shortcuts modal display.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

@TESTPERSONAL is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:design GSSoC type bonus: UI/design (+10 pts) type:feature GSSoC type bonus: new feature labels May 25, 2026
@github-actions
Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

@TESTPERSONAL is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

The DashboardHeader renders the h1 as 'DASHBOARD' (all-caps via
design), but the Playwright selectors used an exact-case match
{ name: "Dashboard" } which never matched.

Changed all three heading assertions to /dashboard/i regex so they
match the actual DOM output and unblock every failing E2E test.
@github-actions github-actions Bot added the type:testing GSSoC type bonus: tests (+10 pts) label May 25, 2026
landing.spec.js:
- Remove assertion for 'DevTrack' h1 (hero reads 'YOUR CODE HAS A PULSE')
- Add .first() to 'Sign in with GitHub' link selectors (2 links on page,
  strict mode violation)
- Replace 'View on GitHub' link with '★ Star on GitHub' (actual text)

auth-bypass.spec.js:
- Add .first() to 'Sign in with GitHub' link (strict mode violation)
- Change heading assertions from exact 'Dashboard' to /dashboard/i regex

dashboard-widgets.spec.js:
- Add mock for /api/goals/sync so GoalTracker doesn't hang waiting for
  a real Supabase call (Goals heading was never rendering in CI)
- Add mocks for additional API routes hit on dashboard load
@Priyanshu-byte-coder
Copy link
Copy Markdown
Owner

Closing as duplicate of #985 which covers the same Alt+T shortcut feature (already approved and has broader implementation with GlobalKeyboardShortcuts). Thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:design GSSoC type bonus: UI/design (+10 pts) type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Add keyboard shortcut to toggle theme (Alt+T or Cmd+Shift+L)

2 participants