C2LC-110: Focus is lost when modifying the program

Metadata

Source
C2LC-110
Type
Sub-task
Priority
N/A
Status
Done
Resolution
N/A
Assignee
Daniel Cho
Reporter
Created
2019-12-19T13:52:51.973-0500
Updated
2020-01-15T13:57:12.074-0500
Versions
N/A
Fixed Versions
  1. Coding Env 0.2
Component
N/A

Description

This happens when setting a step command block, when Adding a blank step and when Deleting a step.

Steps to reproduce:

  • Load the Coding Environment
  • Activate the Forward command block in the command palette
  • Navigate by keyboard to the first program step
  • Press Space or Enter to set the Forward command at the first step

Expected: Focus to remain on the first step, which now has the Forward command

Actual: Focus is lost

Notes:

Steps to reproduce:

  • Load the Coding Environment
  • Activate the Forward command block in the command palette
  • Set the Forward command at the first step
  • Activate the Add editor action
  • Navigate by keyboard to the first program step
  • Press Space or Enter to insert a blank before the Forward command

Expected: Focus to remain on the Forward step (now the second step)

Actual: Focus is lost

Steps to reproduce:

  • Load the Coding Environment
  • Make a program with: Forward, Right
  • Activate the Delete editor action
  • Navigate by keyboard to the first program step (Forward)
  • Press Space or Enter to delete the Forward command

Expected: Focus is now on the new first step block (Right)

Actual: Focus is lost

Comments

  • Simon Bates commented 2020-01-15T13:57:00.153-0500

    The implementation for 'Add' varies a little from the description above: rather than focus being set on the block position after the newly inserted block, it is set on the newly inserted block.