summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-04 22:04:11 +0000
committerDavid Robillard <d@drobilla.net>2010-03-04 22:04:11 +0000
commit78eb8c2b49a7858ace15adcfbb59505cb6a2cb71 (patch)
tree5ce2b8b7f24094b9c3607b04c1a8a7d34151e5e0 /src/gui/PatchCanvas.cpp
parent6e9aa3be4ae85f5a9bc4924b381962ac4a5760ac (diff)
downloadingen-78eb8c2b49a7858ace15adcfbb59505cb6a2cb71.tar.gz
ingen-78eb8c2b49a7858ace15adcfbb59505cb6a2cb71.tar.bz2
ingen-78eb8c2b49a7858ace15adcfbb59505cb6a2cb71.zip
Scroll to origin on Home key press.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2523 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchCanvas.cpp')
-rw-r--r--src/gui/PatchCanvas.cpp3
1 files changed, 3 insertions, 0 deletions
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);