There are three blocks which has rename functionality ( constant, input and output ), implemented keydown event handler to detect the Alt+R or Alt+r key combination when particular block is selected.
Ensured that the shortcut key functionality only works when the lock on internal blocks containing constant, input, or output is opened, preventing any unintended changes to internal blocks with locks.
Related Issues
Fixes: #282
Screenshots
When the lock on an internal block is open, pressing Alt+R opens a dialog box for renaming - Screenshot
In the main canvas, after pressing the shortcut key for renaming- Screenshot
Changes Made
Related Issues
Fixes: #282
Screenshots
When the lock on an internal block is open, pressing Alt+R opens a dialog box for renaming - Screenshot![](https://github.com/JdeRobot/VisualCircuit/assets/62588059/b6edd536-a2dd-4d27-b68b-2acc3aebad37)
In the main canvas, after pressing the shortcut key for renaming- Screenshot![](https://github.com/JdeRobot/VisualCircuit/assets/62588059/bd18f951-14e0-4a66-953c-709e23a1ce03)