From ae7c5b0fdad20938e4e0043e0cd36bf2a3c1eafe Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 11 Oct 2012 14:13:58 -0700 Subject: [PATCH] Support core up/down events in markdown preview view --- src/extensions/markdown-preview/markdown-preview.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/extensions/markdown-preview/markdown-preview.coffee b/src/extensions/markdown-preview/markdown-preview.coffee index 8601b8b85..3d260285e 100644 --- a/src/extensions/markdown-preview/markdown-preview.coffee +++ b/src/extensions/markdown-preview/markdown-preview.coffee @@ -19,6 +19,10 @@ class MarkdownPreview extends View @attach() if @isMarkdownFile(path) @on 'markdown-preview:detach', => @detach() + @on 'core:page-up', => @pageUp() + @on 'core:page-down', => @pageDown() + @on 'core:move-to-top', => @scrollToTop() + @on 'core:move-to-bottom', => @scrollToBottom() attach: -> @rootView.append(this)