From 5bb577343b710ed458479e37db92d51cfb8badaf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 15 Sep 2008 21:54:49 +0000 Subject: Fix hotkeys involving the 'e' key (don't steal for edit mode unless no modifiers are pressed). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1506 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/PatchCanvas.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src') 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; } -- cgit v1.2.1