mirror of
https://github.com/atom/atom.git
synced 2026-02-07 21:25:05 -05:00
Rename root-view: event prefix to window:
This commit is contained in:
@@ -21,7 +21,7 @@ window.keymap.bindKeys 'body'
|
||||
pageup: 'core:page-up'
|
||||
pagedown: 'core:page-down'
|
||||
|
||||
'meta-S': 'root-view:save-all'
|
||||
'meta-+': 'root-view:increase-font-size'
|
||||
'meta--': 'root-view:decrease-font-size'
|
||||
'ctrl-w w': 'root-view:focus-next-pane'
|
||||
'meta-S': 'window:save-all'
|
||||
'meta-+': 'window:increase-font-size'
|
||||
'meta--': 'window:decrease-font-size'
|
||||
'ctrl-w w': 'window:focus-next-pane'
|
||||
|
||||
@@ -74,11 +74,11 @@ class RootView extends View
|
||||
@project.setPath(path) unless @project.getRootDirectory()
|
||||
@setTitle(path)
|
||||
|
||||
@command 'root-view:increase-font-size', => @setFontSize(@getFontSize() + 1)
|
||||
@command 'root-view:decrease-font-size', => @setFontSize(@getFontSize() - 1)
|
||||
@command 'root-view:focus-next-pane', => @focusNextPane()
|
||||
@command 'root-view:save-all', => @saveAll()
|
||||
@command 'root-view:toggle-invisibles', => @setShowInvisibles(not @showInvisibles)
|
||||
@command 'window:increase-font-size', => @setFontSize(@getFontSize() + 1)
|
||||
@command 'window:decrease-font-size', => @setFontSize(@getFontSize() - 1)
|
||||
@command 'window:focus-next-pane', => @focusNextPane()
|
||||
@command 'window:save-all', => @saveAll()
|
||||
@command 'window:toggle-invisibles', => @setShowInvisibles(not @showInvisibles)
|
||||
|
||||
afterAttach: (onDom) ->
|
||||
@focus() if onDom
|
||||
|
||||
Reference in New Issue
Block a user