mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Remove Editor:bindToKeyedEvent
This commit is contained in:
@@ -1807,13 +1807,6 @@ class Editor extends View
|
||||
else
|
||||
' '
|
||||
|
||||
bindToKeyedEvent: (key, event, callback) ->
|
||||
binding = {}
|
||||
binding[key] = event
|
||||
atom.keymap.bindKeys '.editor', binding
|
||||
@on event, =>
|
||||
callback(this, event)
|
||||
|
||||
replaceSelectedText: (replaceFn) ->
|
||||
selection = @getSelection()
|
||||
return false if selection.isEmpty()
|
||||
|
||||
Reference in New Issue
Block a user