-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[ui] Add tooltip with keyboard shortcut info on top nav items #20977
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @hellendag and the rest of your teammates on Graphite |
@@ -42,8 +42,7 @@ export const AppTopNav = ({children, allowGlobalReload = false}: Props) => { | |||
} | |||
}} | |||
shortcutLabel={`⌥R - ${reloading ? 'Reloading' : 'Reload all code locations'}`} | |||
// On OSX Alt + R creates ®, not sure about windows, so checking 'r' for windows | |||
shortcutFilter={(e) => e.altKey && (e.key === '®' || e.key === 'r')} | |||
shortcutFilter={(e) => e.altKey && e.code === 'KeyR'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏾
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit b590d3b. |
c6356be
to
b94b764
Compare
c835d58
to
7a6bbe4
Compare
Merge activity
|
7a6bbe4
to
b590d3b
Compare
Summary & Motivation
Add a tooltip with info about keyboard shortcuts on Search and Help buttons.
How I Tested These Changes
View top nav in app, hover on these buttons.