diff options
| author | Joel Holdsworth <joel@airwebreathe.org.uk> | 2007-07-05 21:08:40 +0000 |
|---|---|---|
| committer | joelholdsworth <joelholdsworth@users.sourceforge.net> | 2007-07-05 21:08:40 +0000 |
| commit | ea81233d0495d5a1590a70a42ee60db83c5572d0 (patch) | |
| tree | 949135837e18c8073c811bfba388c92ed80a2f82 | |
| parent | make subtree monitoring part of XML::Node's interface (diff) | |
| download | inkscape-ea81233d0495d5a1590a70a42ee60db83c5572d0.tar.gz inkscape-ea81233d0495d5a1590a70a42ee60db83c5572d0.zip | |
Fixed broken Shift+LeftClick to set stroke function
(bzr r3187)
| -rw-r--r-- | doc/keys.xml | 1 | ||||
| -rw-r--r-- | src/dialogs/swatches.cpp | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/keys.xml b/doc/keys.xml index 5beb8efc2..e66ecdc6c 100644 --- a/doc/keys.xml +++ b/doc/keys.xml @@ -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> diff --git a/src/dialogs/swatches.cpp b/src/dialogs/swatches.cpp index fafa460c4..0a04d0d47 100644 --- a/src/dialogs/swatches.cpp +++ b/src/dialogs/swatches.cpp @@ -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) |
