Importing Shift+Number shortcuts disables unmodified Number shortcuts (Ratings)

Hi everyone,

I am noticing a strange behavior when importing shortcuts via the settings dialog.

I tried to map the mask creation tools to Shift + 1-6. I imported the following block:

1;shift=iop/masks/shapes/add circle
2;shift=iop/masks/shapes/add ellipse
3;shift=iop/masks/shapes/add path
4;shift=iop/masks/shapes/add brush
5;shift=iop/masks/shapes/add gradient
6;shift=iop/blend/tools/show and edit mask elements

However, after the import, I noticed that the standard star rating shortcuts (unmodified keys 1-5) were automatically disabled in my shortcutsrc:

1=disabled;views/thumbtable/rating;one
2=disabled;views/thumbtable/rating;two
3=disabled;views/thumbtable/rating;three
4=disabled;views/thumbtable/rating;four
5=disabled;views/thumbtable/rating;five

Since Shift+1 and 1 are distinct key combinations, I would not expect a conflict here. Is there a specific reason why the import logic disables the unmodified keys in this scenario, or is this a bug?

I am on Arch Linux using the latest Darktable version.

Thanks,
Chris

What happens if you reassign the ratings keys?

How did you import them?

1 Like

That’s no problem.

Settings → Shortcuts → Import

I also tried with and without “loading default shortcuts”, or using Alt instead of Shift.

I looked in the manual, but couldn’t find anything about the “logic” behind importing. Should existing shortcuts also be overwritten during import, or are they “protected”? This does not relate to the problem described above.

Thx.

1 Like

I would say look through the pull requests for shortcuts. I know there were some merged, but I don’t remember the details

1 Like

I searched through all of that but couldn’t find anything.

Hmmm…

1 Like

Thanks for pointing that out. I saw and looked at those posts, but couldn’t find any connection to the import problem. Maybe I overlooked it?
Best regards, Chris

Problem solved.

5;shift=iop/masks/shapes/add gradient <- incorrect

6;shift=iop/blend/tools/show and edit mask elements <- correct

Apologies for the inconvenience and thank you for your assistance.

Kind regards, Chris