mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
💄
This commit is contained in:
@@ -17,16 +17,12 @@ class Keymap
|
||||
'meta-,': 'open-user-configuration'
|
||||
'meta-o': 'open'
|
||||
|
||||
@_newWindow = => $native.newWindow()
|
||||
@_openUserConfiguration = => atom.open(atom.userConfigurationPath)
|
||||
@_open = =>
|
||||
$(document).on 'new-window', => $native.newWindow()
|
||||
$(document).on 'open-user-configuration', => atom.open(atom.userConfigurationPath)
|
||||
$(document).on 'open', =>
|
||||
url = $native.openDialog()
|
||||
atom.open(url) if url
|
||||
|
||||
$(document).on 'new-window', @_newWindow
|
||||
$(document).on 'open-user-configuration', @_openUserConfiguration
|
||||
$(document).on 'open', @_open
|
||||
|
||||
unbindDefaultKeys: ->
|
||||
$(document).unbind 'new-window', @_newWindow
|
||||
$(document).unbind 'open', @_open
|
||||
|
||||
Reference in New Issue
Block a user