summaryrefslogtreecommitdiffstats
path: root/src/libs/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-15 21:54:49 +0000
committerDavid Robillard <d@drobilla.net>2008-09-15 21:54:49 +0000
commit5bb577343b710ed458479e37db92d51cfb8badaf (patch)
tree1107e9339969fceeb7f6edd0018967e243cf9a67 /src/libs/gui
parentbcdbdf9bcffe229d6f791de69bfc46cb24743fa9 (diff)
downloadingen-5bb577343b710ed458479e37db92d51cfb8badaf.tar.gz
ingen-5bb577343b710ed458479e37db92d51cfb8badaf.tar.bz2
ingen-5bb577343b710ed458479e37db92d51cfb8badaf.zip
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
Diffstat (limited to 'src/libs/gui')
-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;
}