DigitizingTools icon indicating copy to clipboard operation
DigitizingTools copied to clipboard

Split Feature has duplicate name and creates a shortcut collision

Open techdude1996 opened this issue 5 years ago • 2 comments

The Split Feature command found in your plugin shares the same name as QGIS's Split Feature command. When creating a keyboard shortcut for either function, the xml file reads:

<act shortcut="V" name="Split Features"/>

When the file is read in by QGIS, both commands get the 'V' key as their shortcut as they share the same name. So, when I press 'V', QGIS doesn't know which command to call and nothing happens.

When saving the file back out, it now reads:

<act shortcut="V" name="Split Features"/>
<act shortcut="V" name="Split Features"/>

Here's a screenshot of the shortcuts window with the plugin enabled: image

As you can see, QGIS can't distinguish the one from the other and treats them as the same.

An "easy" fix would be to prefix the commands in the plugin, i.e. "Digitizing - Split Features"

techdude1996 avatar Feb 06 '20 15:02 techdude1996

Yes this would be a very welcome fix since I have to change the Keyboard Shortcuts every time I start QGIS.

oskarlin avatar Dec 30 '20 10:12 oskarlin

Hi,

I'm new in using this plugin and I found that not only on the Split Feature, it also happens on the Merge Feature. Since this plugin is very useful for my works, so for now I have to change the shortcuts every time start the QGIS.

mperwira avatar May 17 '21 02:05 mperwira