jupytercad/JupyterCAD

RFD: Proposal to Add Keybindings for Additional JupyterCAD Commands

Opened this issue · 4 comments

Currently, JupyterCAD supports keybindings for a few essential commands such as undo, redo, and removeObject. However, there are several other commands in JupyterCAD that would benefit from having dedicated keybindings to enhance UX.

Proposed Keybindings(Draft):

  • New Sketch: Ctrl + Shift + N
  • New Box: Ctrl + Shift + B
  • New Cylinder: Ctrl + Shift + C
  • New Sphere: Ctrl + Shift + S
  • New Cone: Ctrl + Shift + E
  • New Torus: Ctrl + Shift + T
  • Cut: Ctrl + X
  • Extrusion: Ctrl + Shift + E
  • Union: Ctrl + U
  • Intersection: Ctrl + I
  • Chamfer: Ctrl + Shift + F
  • Fillet: Ctrl + F
  • Update Axes: Ctrl + Shift + A
  • Update Exploded View: Ctrl + Shift + V
  • Update Camera Settings: Ctrl + Shift + K
  • Update Clip View: Ctrl + Shift + L
  • Export Jcad: Ctrl + Shift + X
  • New Box: Ctrl + Shift + B
  • New Cylinder: Ctrl + Shift + C
  • New Sphere: Ctrl + Shift + S
  • New Cone: Ctrl + Shift + E
  • New Torus: Ctrl + Shift + T

I think these may also be fine to skip

Thanks for the suggestion. I think we should keep it consistent by prefixing all shortcuts with Ctrl + Shift and should avoid collision with JupyterLab shortcuts

kb

  • New Box: Ctrl + Shift + B
  • New Cylinder: Ctrl + Shift + C
  • New Sphere: Ctrl + Shift + S
  • New Cone: Ctrl + Shift + E
  • New Torus: Ctrl + Shift + T

I think these may also be fine to skip

I have no issues keeping these shortcuts

I think we should keep it consistent by prefixing all shortcuts with Ctrl + Shift and should avoid collision with JupyterLab shortcuts

That sounds good, thanks. Would you want pre-existing keyboard shortcuts (i.e. Ctrl+Z, Ctrl+Y & Delete) to also have prefix Ctrl + Shift?