You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feature: Add keyboard shortcuts for comparison form and table search #222
Introduce intuitive keyboard shortcuts across the application to enhance developer ergonomics:
Press / to focus the search input (in CompareForm or LeaderboardTable).
Press Ctrl + Enter (or Cmd + Enter) inside CompareForm inputs to submit the comparison.
Press Escape to clear inputs or reset focus.
Motivation
Developers appreciate thoughtful keyboard ergonomics. Subtle shortcuts give the app a polished, pro-tier feel that earns respect and upvotes on Hacker News and Reddit.
Tasks
Implement a lightweight keyboard listener hook (e.g., useHotkeys or useEffect on window).
Introduce intuitive keyboard shortcuts across the application to enhance developer ergonomics:
/to focus the search input (inCompareFormorLeaderboardTable).Ctrl + Enter(orCmd + Enter) insideCompareForminputs to submit the comparison.Escapeto clear inputs or reset focus.Motivation
Developers appreciate thoughtful keyboard ergonomics. Subtle shortcuts give the app a polished, pro-tier feel that earns respect and upvotes on Hacker News and Reddit.
Tasks
useHotkeysoruseEffectonwindow).<kbd className="border rounded px-1.5 text-xs">⌘↵</kbd>) inside input fields or submit buttons.Files to Check
src/features/comparison/components/compare-form.tsxsrc/features/leaderboard/components/leaderboard-table.tsxsrc/components/ui/input.tsxTip
🚀 Want to contribute?
Comment
assign meto be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨