Closed Nancy-Salpepi closed 1 year ago
@catherinecarter do we want to include A
and D
as ways to move a grabbed ball or card, or would you like us to remove that shortcut from the keyboard dialog?
I believe A
and D
are standard keys to move a grabbed object, so yes, that would be great if we could put those in.
I did notice two other things in the keyboard shortcut:
the up/down arrow keys don't move the ball left and right:
Let's remove the up/down arrows from the keyboard dialog help box.
Also curious how challenging/time consuming it would be to add the page up/down and move in larger steps (shift right/left) to the soccer ball group and cards for the selection of which ball/card to move (prior to pressing space or enter to grab)? I'm finding myself wanting to choose which ball to move by skipping to the ends of the number line, but I currently cannot.
Okay perfect. I can add A
and D
for both the balls and the cards.
Let's remove the up/down arrows from the keyboard dialog help box.
Also curious how challenging/time consuming it would be to add the page up/down and move in larger steps (shift right/left) to the soccer ball group and cards for the selection of which ball/card to move (prior to pressing space or enter to grab)
Let's remove the up/down arrows from the keyboard dialog help box.
Okay I didn't realize we were using a commonCode element for the Basic Actions
section. I would actually just recommend adding the up and down arrows to how you can select different balls or cards in a group since this is also referring to radioButtonGroups
. @catherinecarter thoughts?
Hmmm... but now I'm also noticing that we would need to add pageUp
and pageDown
to the keyboard help dialog for Basic Actions... which wouldn't work for radioButtonGroup
. I think we need to chat about this before I keep moving forward.
Here's the patch for implementing pageUp, pageDown, home, end
into selecting a different ball.
We chatted about this today and decided:
pageUp/Down
or home/end
to how a user can select a different ball or card in a groupw
and s
.I updated the keyboard help dialogs.
I did notice a discrepancy between the headings for the prediction tools on the variability and Median/Mean & Median screens.
The variability screen heading starts with 'move' but the other screens do not.
Over to @catherinecarter
I noticed that the escape
key is not included in the Grab or Release Ball or Card
section, even though that functionality exists. Do we want to add a row to include the escape
key, or are we okay with not mentioning it?
I also wanted to show a couple different ways to format the moved grabbed card or ball
row since it's now much longer with the all the added keys:
Example 1:
Example 2:
Example 3:
The spacing looks a little tight with the addition of the up/down keys and the w
and s
keys:
I like your example 2 above better:
I agree about the inconsistent verbs on screens 1 and 2. I think originally, @terracoda suggested to start the sentence with "Predict" which treated 'predict' as the verb, but seeing the together makes me think the "Move" verb should be first on both screens. So, "Move Predict Mean or Median" Thanks for noticing.
In general, with the addition of the up/down/w/s keys, I like the layout of example 2 with the Basic Actions moved down
In terms of the esc
key, it is mentioned in the basic actions, but only to close a dialog. I wonder if the esc
is a well-known key to exit something so it doesn't need mentioning, or if the action needs to be specifically called out in the other portions of the dialog. @terracoda, can you weigh in here?
esc
key mentioned anywhere except to exit a dialog, so this would be a unique keyboard dialog if we did mention itThanks, @marlitas!
The Example 2 layout is definitely the better layout. That's what we did in Molarity's Keyboard Shortcuts.
Regarding the ESC key, I do not immediately see any combo-boxes in this sim where the ESC key is used to exit without making a new selection. Is that what you are asking about?
In Molarity and Ratio and Proportion (screen one) ESC is part of the combo-box intstructions, but we did not explicitly provide instructions for the Range combo-box on screen 2 of RaP for a few reasons:
@terracoda the escape
key can be used to drop a ball or a card when one is "grabbed". I can remove that behavior since the space
and enter
keys do essentially the same thing if we'd like.
The keyboard dialog is now ready for review. Over to @catherinecarter and @Nancy-Salpepi.
There were several code changes, so a code review probably would be good too.
Yes, I'd love to hear more about @terracoda's assessment of the escape key and whether we should remove the functionality from the code, or leave it but don't mention it in the dialog box.
I'm also curious if the size of the font should remain consistent:
Is it possible, or equally so, desirable, to have the "Move Pointer..." the same size as all the other titles, as shown in the "Basic Actions" title, but move what doesn't fit to a second line? Or is the most important aspect of the title to keep all words on the same line?
"Move in Smaller Steps" currently only works on for the Interval tool, pointer and mean prediction arrow. It doesn't work for the median prediction arrows on the first two screens. I also can't move the median prediction arrows in smaller steps with the mouse.
The predict median will snap to 1/2 integer values, but the predict mean should be able to move in smaller steps. The median value can only be either whole or 1/2 integers, so that's why it doesn't move in smaller steps.
That said, I agree that on the Median screen, the direction to "Move in smaller steps" should be removed.
On the Mean & Median screen, let's change the wording to say, "Move Predict Mean in smaller steps" (replacing the "Move in smaller steps") to be more clear this only applies to the Predict Mean slider and not the predict median slider.
Also a curiosity: Is it difficult to change the "move in larger steps" for the prediction sliders on all three screens to go by 2's rather than 1's?
That said, I agree that on the Median screen, the direction to "Move in smaller steps" should be removed.
Okay. I would love to be able to do this while still using SliderControlsKeyboardHelpSection
, but I would need to add an option to include or remove the "adjust in smaller steps" row. @jessegreenberg here's a patch for that. Does that seem okay to add into this class?
On the Mean & Median screen, let's change the wording to say, "Move Predict Mean in smaller steps"
Hmmm I would also love to still use SliderControlsKeyboardHelpSection
with this change... It definitely seems a bit trickier. I guess I could add another option like above that allows me to insert "predict mean" into that row's string, but that doesn't seem as useful down the line as the other option... @jessegreenberg what are your thoughts here?
Also a curiosity: Is it difficult to change the "move in larger steps" for the prediction sliders on all three screens to go by 2's rather than 1's?
@catherinecarter this is really easy to do. Do you want me to do it?
I'll remove the ready-for-review
label until these latest changes are applied.
Thanks for getting back quickly, @marlitas. Yes, please implement the 'move by 2' as the larger steps for the prediction sliders. Thank you!
Oh. I forgot about that. You do not need to describe that in Keyboard Shortcuts. It’s just a natural thing that users do to cancel an interaction.
Please leave it in.
Met with @jessegreenberg today and he said that we can move forward with adding an option to SliderControlsKeyboardHelpSection
to remove the "Adjust in Smaller Steps" row. I will go ahead and apply the patch above to do so.
We will pair when his schedule clears up to do the larger API change for customizing the strings in each row of the SliderControlsKeyboardHelpSection
.
The option to remove the smallerSteps row has been added. Next up is customizing strings.
@marlitas and I worked together on the above common code change so that labels for each row can be customized. Next up is using the new options in the sim.
Thanks for all the help on this @jessegreenberg! This is now ready for designer review. Over to @catherinecarter.
Looks really good. Thanks for working so hard on this, @marlitas and @jessegreenberg, much appreciated!
My only question (I'm ok either way) is whether we want to add a noun to the Variability screen after the verb, "Move" in the top right. None of the other dialogs have just "Move," and instead describe at least one thing that's moveable.
I'm ok leaving as is since there are other sims that just say, "Move," but I'm curious if it would make sense to say, "Move object" or something?
What are your thoughts, @jessegreenberg and @marlitas?
I think it's completely up to your preference, I have no preference either way. Code wise we can easily make that change. Would you like it to say "Move object"?
I guess so. Seems strange to see just "Move" without any noun after it.
So yes, let's change it to say, "Move object." Thanks @marlitas.
Okay this has been changed. @catherinecarter go ahead and close the issue if all looks wells.
Oops I accidentally closed it! 😅
Looks great. Thanks.
Closing.
Test device MacBook Air M1 chip
Operating System 13.5.2
Browser Safari 16.6
Problem description For https://github.com/phetsims/qa/issues/985, the "A" and "D" keys do not move the soccer balls or cards.
Visuals