diff options
author | David Robillard <d@drobilla.net> | 2008-09-15 21:54:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-15 21:54:49 +0000 |
commit | 5bb577343b710ed458479e37db92d51cfb8badaf (patch) | |
tree | 1107e9339969fceeb7f6edd0018967e243cf9a67 /src/libs | |
parent | bcdbdf9bcffe229d6f791de69bfc46cb24743fa9 (diff) | |
download | ingen-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')
-rw-r--r-- | src/libs/gui/PatchCanvas.cpp | 14 |
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; } |