mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Support core up/down events in markdown preview view
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user