diff options
Diffstat (limited to 'src/gui/PatchWindow.cpp')
-rw-r--r-- | src/gui/PatchWindow.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp index 526b7fec..0ee60760 100644 --- a/src/gui/PatchWindow.cpp +++ b/src/gui/PatchWindow.cpp @@ -62,6 +62,8 @@ PatchWindow::on_show() move(_x, _y); Gtk::Window::on_show(); + + _box->view()->canvas()->widget().grab_focus(); } void @@ -72,16 +74,5 @@ PatchWindow::on_hide() Gtk::Window::on_hide(); } -bool -PatchWindow::on_event(GdkEvent* event) -{ - if ((event->type == GDK_KEY_PRESS || event->type == GDK_KEY_RELEASE) - && box()->view()->canvas()->on_event(event)) { - return true; - } else { - return Gtk::Window::on_event(event); - } -} - } // namespace GUI } // namespace Ingen |