Behaviour SwRS-MDOKFSTUDIO-PALETTE-017
Cmd/Ctrl+Shift+M reaches the mode select and Escape or Enter returns to the text
When the writer presses Cmd+Shift+M on macOS or Ctrl+Shift+M elsewhere in the block text box, the extension SHALL close any open picker and move the focus to the mode select, whose tooltip names that key, and give the focus back to the text box without changing the mode when the writer presses Escape or Enter, or clicks a second time, on the select.
Step 1 of path 1 in StRS-MDOKFSTUDIO-PALETTE-002: from “A block text box is open in edit mode” to “The focus is in the mode select”.
Scenarios 5
The situations the tests check; open one to read it.
nominalPlatform key
Givena block editor with the focus in the text box
Whenthe writer presses the key combination of the platform
Thenany open picker is closed, the focus is on the mode select and the editor stays open
nominalTooltip of the select
Givena block editor
Whenthe writer hovers the select
Thenthe tooltip is the one of the table
| Platform | Tooltip |
|---|---|
| macOS | Palette buttons (Cmd+Shift+M) |
| Windows or Linux | Palette buttons (Ctrl+Shift+M) |
refusalWrong modifier
Giventhe same editor on macOS
Whenthe writer presses Ctrl+Shift+M
Thennothing happens
nominalReturn to the text box
Giventhe focus on the select
Whenthe writer presses the key or clicks as in the table
Thenthe focus is in the text box, the mode is unchanged and the editor stays open
| Input on the select | Outcome |
|---|---|
| Escape | the focus is in the text box, the mode is unchanged and the editor stays open |
| Enter | the focus is in the text box and the mode is unchanged |
| a second click (opening and dismissing the select without a change) | the focus is handed back to the text box |
boundaryComposition
Givenan IME composition in progress
Whena key is pressed on the select
Thenthe key is ignored