Support core up/down events in markdown preview view

This commit is contained in:
Kevin Sawicki 2012-10-11 14:13:58 -07:00
parent 8c0f443c75
commit ae7c5b0fda

View File

@ -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)