summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/PatchCanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui/PatchCanvas.cpp')
-rw-r--r--src/libs/gui/PatchCanvas.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp
index da4b2374..bd3a6bee 100644
--- a/src/libs/gui/PatchCanvas.cpp
+++ b/src/libs/gui/PatchCanvas.cpp
@@ -528,11 +528,15 @@ PatchCanvas::canvas_key_event(GdkEventKey* event)
destroy_selection();
return true;
case GDK_e:
- if (_patch->get_editable() == true)
- _patch->set_editable(false);
- else
- _patch->set_editable(true);
- return true;
+ if (event->state == 0) {
+ if (_patch->get_editable() == true)
+ _patch->set_editable(false);
+ else
+ _patch->set_editable(true);
+ return true;
+ } else {
+ return false;
+ }
default:
return false;
}