Code

make alt+x work when no text is selected
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 6 Jun 2009 21:55:55 +0000 (21:55 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 6 Jun 2009 21:55:55 +0000 (21:55 +0000)
src/text-context.cpp

index 21f74a84b5afcd3c23cacf75da801a1e449cb2f9..538e13e433e1a57e4c5325c40bd96f0821c65446 100644 (file)
@@ -1279,6 +1279,9 @@ sp_text_context_root_handler(SPEventContext *const event_context, GdkEvent *cons
                         }
                         Inkscape::Rubberband::get(desktop)->stop();
                     }
+                } else if ((group0_keyval == GDK_x || group0_keyval == GDK_X) && MOD__ALT_ONLY) {
+                    desktop->setToolboxFocusTo ("altx-text");
+                    return TRUE;
                 }
             }
             break;