Skip to content

Instantly share code, notes, and snippets.

@johnbintz
Created January 24, 2014 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnbintz/8590989 to your computer and use it in GitHub Desktop.
Save johnbintz/8590989 to your computer and use it in GitHub Desktop.
Make space in Inkscape toggle tools only
=== modified file 'src/ui/tools/tool-base.cpp'
--- src/ui/tools/tool-base.cpp 2014-01-20 01:30:15 +0000
+++ src/ui/tools/tool-base.cpp 2014-01-24 02:16:47 +0000
@@ -689,13 +689,7 @@
break;
case GDK_KEY_space:
- xp = yp = 0;
- within_tolerance = true;
- panning = 4;
-
- this->space_panning = true;
- this->message_context->set(Inkscape::INFORMATION_MESSAGE,
- _("<b>Space+mouse move</b> to pan canvas"));
+ sp_toggle_selector(desktop);
ret = TRUE;
break;
@@ -741,7 +735,7 @@
case GDK_KEY_space:
if (within_tolerance == true) {
// Space was pressed, but not panned
- sp_toggle_selector(desktop);
+ //sp_toggle_selector(desktop);
ret = TRUE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment