summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d785422)
raw | patch | inline | side by side (parent: d785422)
author | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 6 Aug 2008 13:22:19 +0000 (13:22 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 6 Aug 2008 13:22:19 +0000 (13:22 +0000) |
src/pencil-context.cpp | patch | blob | history |
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index 894b5cd71878f986f131359ed36c02f76e571540..f52094ed101bf5dd8f3eb1ad60dfd74b02d26d57 100644 (file)
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
@@ -503,21 +503,16 @@ pencil_handle_key_press(SPPencilContext *const pc, guint const keyval, guint con
break;
case GDK_Escape:
if (pc->npoints != 0) {
- // if drawing, cancel, otherwise pass it up for deselecting
- if (pc->is_drawing) {
- pencil_cancel (pc);
- ret = TRUE;
- }
+ pencil_cancel (pc);
+ ret = TRUE;
}
break;
case GDK_z:
case GDK_Z:
if (mod_ctrl_only(state) && pc->npoints != 0) {
// if drawing, cancel, otherwise pass it up for undo
- if (pc->is_drawing) {
- pencil_cancel (pc);
- ret = TRUE;
- }
+ pencil_cancel (pc);
+ ret = TRUE;
}
break;
case GDK_g: