summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/xml-tree.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-07-11 17:52:26 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-07-11 17:52:26 +0000
commit558fb7230c83dfffc8994cacf7a2955beb3d88a1 (patch)
tree0a49236e2b0ce9626863f6f487acb99aea30e64d /src/ui/dialog/xml-tree.cpp
parentImprove revision format (diff)
parentOnly update shortcuts tree view once after updating (significantly reduces th... (diff)
downloadinkscape-558fb7230c83dfffc8994cacf7a2955beb3d88a1.tar.gz
inkscape-558fb7230c83dfffc8994cacf7a2955beb3d88a1.zip
Merge branch 'shortcuts' (!41)
Diffstat (limited to 'src/ui/dialog/xml-tree.cpp')
-rw-r--r--src/ui/dialog/xml-tree.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ui/dialog/xml-tree.cpp b/src/ui/dialog/xml-tree.cpp
index d39a4cb8d..83c0de45b 100644
--- a/src/ui/dialog/xml-tree.cpp
+++ b/src/ui/dialog/xml-tree.cpp
@@ -347,13 +347,7 @@ void XmlTree::attr_reset_context(gint attr)
bool XmlTree::sp_xml_tree_key_press(GdkEventKey *event)
{
- unsigned int shortcut = Inkscape::UI::Tools::get_group0_keyval (event) |
- ( event->state & GDK_SHIFT_MASK ?
- SP_SHORTCUT_SHIFT_MASK : 0 ) |
- ( event->state & GDK_CONTROL_MASK ?
- SP_SHORTCUT_CONTROL_MASK : 0 ) |
- ( event->state & GDK_MOD1_MASK ?
- SP_SHORTCUT_ALT_MASK : 0 );
+ unsigned int shortcut = sp_shortcut_get_for_event((GdkEventKey*)event);
/* fixme: if you need to add more xml-tree-specific callbacks, you should probably upgrade
* the sp_shortcut mechanism to take into account windows. */