Skip to content

Rationalise the context menu #466

@microbit-matt-hillsdon

Description

@microbit-matt-hillsdon

Block context menu via mouse:

  • Duplicate
  • Add Comment
  • External Inputs
  • Collapse Block
  • Disable Block
  • Delete 2 Blocks (Del)
  • Cut (Ctrl + X)
  • Copy (Ctrl + C)
  • Paste (Ctrl + V)

Context menu via keyboard:

  • Duplicate
  • Add Comment
  • External Inputs
  • Collapse Block
  • Disable Block
  • Move Block (M)
  • Insert Block (I)
  • Edit Block contents (→)
  • Delete 2 Blocks (Del)
  • Cut (Ctrl + X)
  • Copy (Ctrl + C)
  • Paste (Ctrl + V)

Questions:

  • Are there any we just want to drop at this point?
    • We've moved to signposting users to the help rather than the context menu when they hit enter on a block (via toast in feat: toasts for move/cut/copy and enter on a block #230). Do we still need "Edit Block contents"?
    • I think I could be persuaded to drop almost anything at this point. Needs broader input on whether the new items are
      • useful for discovery still
      • useful for users who have issues accessing certain keys / benefit from being able to use functions with fewer keys needed
  • Do we want the keyboard shortcuts there for mouse users? I think yes, but I think we have to make them pretty (i.e. right aligned, maybe grey, compare OS renderings).
  • The ordering feels arbitrary to me for keyboard users. If we think these actions belong on the context menu then I think there's a case for them being at the top:
    • Move Block (M)
    • Edit Block contents (→)
    • Insert Block (I)
  • "Insert Block" feels like the odd one out to me as it doesn't act on the block as such, but relative to it.

This is something of a brain dump issue and would benefit from more input and then some discussion. I guess I'd really like to sample everyone's level of happiness with the status quo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions