-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updates to BasicActionsKeyboardHelpSection keyboard section for basic alt-input #93
Comments
An idea from the meeting. Add 2 more items to the "basic actions" section:
Please provide for each row:
|
patch to add basic section to MSS: Subject: [PATCH] translatable strings for hot key help content, https://github.com/phetsims/scenery-phet/issues/797
---
Index: js/lab/LabScreen.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/lab/LabScreen.ts b/js/lab/LabScreen.ts
--- a/js/lab/LabScreen.ts (revision 68f366b3d1f9550b8c58c91dd3c699fdde8a94e2)
+++ b/js/lab/LabScreen.ts (date 1678313569678)
@@ -14,6 +14,7 @@
import LabScreenView from './view/LabScreenView.js';
import LabScreenIcon from './view/LabScreenIcon.js';
import MySolarSystemStrings from '../MySolarSystemStrings.js';
+import BasicActionsKeyboardHelpSection from '../../../scenery-phet/js/keyboard/help/BasicActionsKeyboardHelpSection.js';
class LabScreen extends Screen<LabModel, LabScreenView> {
@@ -23,7 +24,10 @@
homeScreenIcon: new LabScreenIcon(),
backgroundColorProperty: SolarSystemCommonColors.backgroundProperty,
tandem: tandem,
- name: MySolarSystemStrings.screen.labStringProperty
+ name: MySolarSystemStrings.screen.labStringProperty,
+ createKeyboardHelpNode: () => {
+ return new BasicActionsKeyboardHelpSection( { withCheckboxContent: true } );
+ }
};
super(
Index: js/intro/IntroScreen.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/intro/IntroScreen.ts b/js/intro/IntroScreen.ts
--- a/js/intro/IntroScreen.ts (revision 68f366b3d1f9550b8c58c91dd3c699fdde8a94e2)
+++ b/js/intro/IntroScreen.ts (date 1678313433728)
@@ -14,6 +14,7 @@
import IntroScreenView from './view/IntroScreenView.js';
import IntroScreenIcon from './view/IntroScreenIcon.js';
import MySolarSystemStrings from '../MySolarSystemStrings.js';
+import BasicActionsKeyboardHelpSection from '../../../scenery-phet/js/keyboard/help/BasicActionsKeyboardHelpSection.js';
class IntroScreen extends Screen<IntroModel, IntroScreenView> {
@@ -23,7 +24,10 @@
homeScreenIcon: new IntroScreenIcon(),
backgroundColorProperty: SolarSystemCommonColors.backgroundProperty,
tandem: tandem,
- name: MySolarSystemStrings.screen.introStringProperty
+ name: MySolarSystemStrings.screen.introStringProperty,
+ createKeyboardHelpNode: () => {
+ return new BasicActionsKeyboardHelpSection( { withCheckboxContent: true } );
+ }
};
super( |
Here are the new keyboard shortcuts along with the order they are in. @zepumph H2: Basic Actions |
|
|
Perhaps phetsims/scenery-phet#800 is blocking My Solar System publication. Just noting here. |
Alright all done here. Please respond to the above two checkboxes |
API files are now showing UPDATE: This impacted phetsims/calculus-grapher#225, so I'm adding a reference to it |
I am totally okay with getting rid of the "pop-up" in the help text. I am not totally sure what you mean by the second checkbox. |
Sorry to confuse! Your comment in #93 (comment) doesn't have a line for something already existing in the basic section:
Currently that remains just above the esc to exit dialogs. Is that acceptable? |
pop-up removed above. If the placement of the "reset all" line is acceptable. @Matthew-Moore240 please feel free to close this issue: |
From review today with @arouinfar:
Keep on using keypad in basic section |
Here is what my working copy currently looks like: (it's always a bit ironic that my picture of the PDOM is not accessible here in github). @arouinfar does that seem right to you? What order are you imagining? |
Commits pushed |
@zepumph the keyboard help dialog looks so good, thank you! Section order and PDOM content also look reasonable to me, so I think we're good to close. |
From alt input meeting today, and from #86.
@Matthew-Moore240 will take a first pass on it.
The text was updated successfully, but these errors were encountered: