From 78eb8c2b49a7858ace15adcfbb59505cb6a2cb71 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 4 Mar 2010 22:04:11 +0000 Subject: Scroll to origin on Home key press. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2523 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchCanvas.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 758172ab..4981bf6e 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -575,6 +575,9 @@ PatchCanvas::canvas_event(GdkEvent* event) ret = true; } break; + case GDK_Home: + scroll_to(0, 0); + break; case GDK_space: case GDK_Menu: show_menu(true, 3, event->key.time); -- cgit v1.2.1