Skip to content
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

Looker3d hotkeys #2032

Merged
merged 11 commits into from
Sep 1, 2022
Merged

Looker3d hotkeys #2032

merged 11 commits into from
Sep 1, 2022

Conversation

ritch
Copy link
Contributor

@ritch ritch commented Aug 26, 2022

New HelpPanel

Adds a new generic react HelpPanel which displays shortcuts/help items. These are provided by the component using the useHelpPanel hook, which allows the content / rendering/component to exist in totally different context.

However this does not replace the support for the existing Looker Help Panel. That should be possible in the future. This is only used in the 3d looker at the moment.

Hot Key Support for Looker3D

This tries to mimic the exact logic/style of Escape and other shortcuts in the 2d looker.

Known Issue

If you hover over the 2d looker while a panel (eg. JSONPanel) is open, pressing escape will both close the JSONPanel and the entire Modal. This is due to the common "reading state in an event bug" where the state is actually the initially rendered state. However fixing this is non trivial and should be taken on as a follow up.

@brimoor
Copy link
Contributor

brimoor commented Aug 30, 2022

Just tested this branch and documented a few issues I found in our punch list doc

@ritch ritch force-pushed the looker3d-hotkeys branch 2 times, most recently from 12be7fb to 1e82ba3 Compare August 30, 2022 18:00
@brimoor brimoor added the app Issues related to App features label Aug 31, 2022
Copy link
Contributor

@benjaminpkane benjaminpkane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ritch ritch merged commit 54d22e5 into groups Sep 1, 2022
@ritch ritch deleted the looker3d-hotkeys branch September 1, 2022 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Issues related to App features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants