JdeRobot / VisualCircuit

Visual programming of robots using hardware blocks composition and Python
https://jderobot.github.io/VisualCircuit/
12 stars 14 forks source link

Add Shortcut Key for Renaming Blocks #282

Closed BkPankaj closed 4 months ago

BkPankaj commented 4 months ago

Summary:

Some blocks have both rename and delete functionalities accessible via right-clicking on the block. While the Delete key can be used from the keyboard for deleting, there is currently no shortcut key available for renaming. This poses an inconvenience for users who prefer trackpad usage or minimal mouse control. Therefore, there should be a shortcut key implemented for the renaming functionality.

Steps to Reproduce:

  1. Set up the VisualCircuit frontend and backend for setup refer this.
  2. Run frontend.
  3. Right-click on a block such as the constant block, input block, or output block.

Expected Behavior:

When a user select a block with the rename functionality, they should be able to change the name directly by pressing a designated shortcut key, without the need to open the context menu.

Screenshot:

Constant block with context menu.

BkPankaj commented 4 months ago

Hello @toshan-luktuke , @jmplaza sir, I've submitted a PR ready for review and merging. Could you kindly check and merge it?

Thank you!