Add official guidance or helper utilities for keyboard-based navigation (hotkeys) #15019
rajkumarrathod404
started this conversation in
Proposals
Replies: 1 comment
|
How you handle hotkeys is outside scope of RR, but if you want them to trigger a navigation you can use the let navigate = useNavigate();
useHotKey(pattern, () => navigate("/settings") |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Keyboard shortcuts are a common pattern in modern web applications, especially for power users. Many apps support quick navigation between routes using hotkeys (e.g., Ctrl+K, Alt+H, etc.), but there’s currently no documented pattern or guidance for integrating this with React Router DOM.
All reactions