diff options
author | David Robillard <d@drobilla.net> | 2010-03-07 21:05:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-03-07 21:05:29 +0000 |
commit | 119e610a3e2387e8ec60e2c627676f3684938605 (patch) | |
tree | 72c452544c22073cc02d6235cdc46398738d91e3 /src | |
parent | 1b31fcf1a0cddf81806a153d419af688fe487052 (diff) | |
download | ingen-119e610a3e2387e8ec60e2c627676f3684938605.tar.gz ingen-119e610a3e2387e8ec60e2c627676f3684938605.tar.bz2 ingen-119e610a3e2387e8ec60e2c627676f3684938605.zip |
Fix module context menus (only steal patch window events for key events).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2538 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/PatchWindow.cpp | 7 |
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); + } } |