Some custom shortcuts don't override default ones

Bug #1672811 reported by IFo Hancroft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Undecided
Unassigned

Bug Description

Happens on Inkscape 0.91 r13725 installed from Fedora 25 MATE 64bit's repo.

I have made a default.xml file under .config/inkscape/keys/ in my home directory to change the keys so Select All is set to A instead of Ctrl+A and Select All in All Layers is set to Ctrl + A instead of Ctrl + Alt + A. After that opening Inkscape and testing: A works as Select All (as I expect it to). However Ctrl+A also still works as Select All instead of Select All in All Layers (I don't expect that). Select All in All Layers still is Ctrl+Alt+A (I don't expect that).

Here is the default.xml I've made:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<keys name="My custom shortcuts">
  <bind key="a" action="EditSelectAll" display="true" />
  <bind key="A" action="EditSelectAll" />
  <bind key="a" modifiers="Ctrl" action="EditSelectAllInAllLayers" display="true" />
  <bind key="A" modifiers="Ctrl" action="EditSelectAllInAllLayers" />
</keys>

Even if my default.xml is a total copy of the stock default.xml or inkscape.xml the same thing happens.

If I open Inkscape the Key Preferences show it as overriden and all gui buttons show the new keys, however Ctrl+A still acts as Select All instead of Select All in All Layers.

I don't know if this is to some extend the cause of the issue but I'd propose making it so the custom default.xml (if it doesn't have the standalone="no" part overrides the stock default.xml instead of keys present in the custom default.xml overriding the stock default.xml
For example if I have default example that's a total copy of the stock one and then I delete the lines:
<bind key="n" modifiers="Ctrl" action="FileNew" display="true" />
  <bind key="N" modifiers="Ctrl" action="FileNew" />

FileNew shouldn't be set to anything when Inkscape is opened.

description: updated
Revision history for this message
Eman Modnar (eman-mod) wrote :

I confirm on Linux with r15592.

Revision history for this message
Eman Modnar (eman-mod) wrote :

I found that there are many shortcuts for certain tools just hardcoded and cannot be overridden, e.g. relative to your report: http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/ui/tools/select-tool.cpp#L998

Revision history for this message
IFo Hancroft (ifohancroft) wrote :

I guess then this is the main cause of the issue and the main issue itself. They shouldn't be hardcoded or hardcoded in a way that they can be overriden/unset by the key preferences. Even though I guess this contradicts to the term hardcoded.

Revision history for this message
IFo Hancroft (ifohancroft) wrote :

In this case I don't know whether I should close this bug and open a feature request to have no hardcoded key shortcuts or what :D

Changed in inkscape:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.