mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use atom.keymap in Editor
This commit is contained in:
@@ -1809,7 +1809,7 @@ class Editor extends View
|
||||
bindToKeyedEvent: (key, event, callback) ->
|
||||
binding = {}
|
||||
binding[key] = event
|
||||
window.keymap.bindKeys '.editor', binding
|
||||
atom.keymap.bindKeys '.editor', binding
|
||||
@on event, =>
|
||||
callback(this, event)
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ window.deserializeEditorWindow = ->
|
||||
window.onerror = ->
|
||||
atom.openDevTools()
|
||||
|
||||
#TODO remove once all packages use the atom global
|
||||
window.registerDeserializers = (args...) ->
|
||||
atom.deserializers.add(args...)
|
||||
window.registerDeserializer = (args...) ->
|
||||
|
||||
Reference in New Issue
Block a user