Code

Fixed broken Shift+LeftClick to set stroke function
authorjoelholdsworth <joelholdsworth@users.sourceforge.net>
Thu, 5 Jul 2007 21:08:40 +0000 (21:08 +0000)
committerjoelholdsworth <joelholdsworth@users.sourceforge.net>
Thu, 5 Jul 2007 21:08:40 +0000 (21:08 +0000)
doc/keys.xml
src/dialogs/swatches.cpp

index 5beb8efc274e8098963b2bb4859d7631c8cc1c2b..e66ecdc6c7e189a2b8abd3c91d787cb01169b033 100644 (file)
@@ -176,6 +176,7 @@ RFE</a>).</p>
 <note>These keys work both in the floating palette dialog and in the palette frame at the bottom of the window.</note>
 <mouse><key><left-click/></key> <action>set fill color on selection</action></mouse>
 <mouse><key><shift/><left-click/></key> <action>set stroke color on selection</action></mouse>
+<mouse><key><right-click/></key> <action>set stroke color on selection</action></mouse>
 <mouse><key><left-drag/></key> <action>drag fill color to objects</action></mouse>
 <mouse><key><shift/><left-drag/></key> <action>drag stroke color to objects</action></mouse>
 <note>To change fill/stroke of an object by dragging color on it, that object need not be selected.</note>
index fafa460c41353ebf444a8420cf0949fdf053fce5..0a04d0d475c8eda8945b0d90f6e6d6c4d42656fa 100644 (file)
@@ -224,7 +224,9 @@ static gboolean onButtonPressed (GtkWidget *widget, GdkEventButton *event, gpoin
         {
             if (event->button == 1)
             { 
-                item->buttonClicked(false);
+                               if(event->state & GDK_SHIFT_MASK)
+                                       item->buttonClicked(true);      /* the button was pressed with shift held down. set the stroke */
+                else item->buttonClicked(false);
                 return TRUE; /* we handled this */    
             }
             else if (event->button == 3)