Would someone be able to post the line that I should add to the default.xml file to make a shortcut key for the drop shadow filter?
Filers > Shadows and Glows > Drop Shadow
Default.xml - what line to add for drop shadow filter?
-
- Posts: 96
- Joined: Tue Oct 21, 2014 1:40 pm
- Location: Australia
Re: Default.xml - what line to add for drop shadow filter?
You can't make a key shortcut for anything or everything. I think you can only make a custom shortcut key for something that already has a shortcut.
I could be wrong.
I could be wrong.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Default.xml - what line to add for drop shadow filter?
Use the new built-in shortcut editor in Inkscape 0.91 (Edit > Preferences > Interface > Keyboard Shortcuts), enter 'Drop Shadow' into the search field. In the list below, you will then find two entries for the Drop Shadow filter effect under the item 'Filters', and can assign a custom keyboard shortcut to your liking.
Example code for what is added to the user's custom default.xml file (Shortcut used for the example: Shft+Ctrl+Alt+X):
(Tip: extensions and filter effects have verbs auto-generated based on their ids: this allows command line usage as well as assigning of custom keyboard shortcuts. You can get a list of all verbs on the command line withCaveat: I don't know personally whether this works on Windows now, I vaguely recall we had a bug report that is was broken on Windows.)
Example code for what is added to the user's custom default.xml file (Shortcut used for the example: Shft+Ctrl+Alt+X):
Code: Select all
<bind
key="X"
modifiers="Ctrl,Shift,Alt"
action="org.inkscape.effect.filter.ColorDropShadow" />
(Tip: extensions and filter effects have verbs auto-generated based on their ids: this allows command line usage as well as assigning of custom keyboard shortcuts. You can get a list of all verbs on the command line with
Code: Select all
inkscape --verb-list
-
- Posts: 96
- Joined: Tue Oct 21, 2014 1:40 pm
- Location: Australia
Re: Default.xml - what line to add for drop shadow filter?
It's strange, when I try to edit the default.xml file it says please check if the file is open in another program. Even when I reboot then open it. Inkscape isn't open of course.