summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/PatchWindow.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp
index 61ca446d..42e5c6f4 100644
--- a/src/gui/PatchWindow.cpp
+++ b/src/gui/PatchWindow.cpp
@@ -619,7 +619,12 @@ PatchWindow::on_hide()
bool
PatchWindow::on_event(GdkEvent* event)
{
- return (_view->canvas()->canvas_event(event)) ? true : Gtk::Window::on_event(event);
+ if ((event->type == GDK_KEY_PRESS || event->type == GDK_KEY_RELEASE)
+ && _view->canvas()->canvas_event(event)) {
+ return true;
+ } else {
+ return Gtk::Window::on_event(event);
+ }
}