summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/PatchWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-06-09 19:58:15 +0000
committerDavid Robillard <d@drobilla.net>2008-06-09 19:58:15 +0000
commit2b662dd993c1cce712148765c953dfaf92390a01 (patch)
tree57d422f94026cc45507ab44948032c93a7f7bf37 /src/libs/gui/PatchWindow.cpp
parentdf38131db2c4eb5c83655d848a9776faa79331ca (diff)
downloadingen-2b662dd993c1cce712148765c953dfaf92390a01.tar.gz
ingen-2b662dd993c1cce712148765c953dfaf92390a01.tar.bz2
ingen-2b662dd993c1cce712148765c953dfaf92390a01.zip
Fix Ctrl 'editable' patch modifier (for control twiddling) ceasing to work in various scenarios (ticket #120).
git-svn-id: http://svn.drobilla.net/lad/ingen@1259 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/PatchWindow.cpp')
-rw-r--r--src/libs/gui/PatchWindow.cpp30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/libs/gui/PatchWindow.cpp b/src/libs/gui/PatchWindow.cpp
index 84c60fc9..865cc9eb 100644
--- a/src/libs/gui/PatchWindow.cpp
+++ b/src/libs/gui/PatchWindow.cpp
@@ -419,17 +419,31 @@ PatchWindow::on_hide()
bool
PatchWindow::on_key_press_event(GdkEventKey* event)
{
- if (event->keyval == GDK_Delete) {
- if (_view) {
- _view->canvas()->destroy_selection();
- }
- return true;
- } else {
- return Gtk::Window::on_key_press_event(event);
- }
+ bool ret = false;
+
+ ret = _view->canvas()->canvas_key_event(event);
+
+ if (!ret)
+ ret = Gtk::Window::on_key_press_event(event);
+
+ return ret;
}
+
+bool
+PatchWindow::on_key_release_event(GdkEventKey* event)
+{
+ bool ret = false;
+
+ ret = _view->canvas()->canvas_key_event(event);
+
+ if (!ret)
+ ret = Gtk::Window::on_key_release_event(event);
+
+ return ret;
+}
+
void
PatchWindow::event_quit()
{