mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Remove autocomplate:toggle, replace with autocomplete:attach and autocomplete:cancel
This commit is contained in:
@@ -33,8 +33,7 @@ class Autocomplete extends View
|
||||
@editor.on 'buffer-path-change', => @setCurrentBuffer(@editor.buffer)
|
||||
@editor.on 'before-remove', => @currentBuffer?.off '.autocomplete'
|
||||
|
||||
@editor.on 'autocomplete:toggle', => @attach()
|
||||
@on 'autocomplete:toggle', => @detach()
|
||||
@editor.on 'autocomplete:attach', => @attach()
|
||||
@on 'autocomplete:confirm', => @confirm()
|
||||
@on 'autocomplete:cancel', => @cancel()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
window.keymap.bindKeys '.editor',
|
||||
'escape': 'autocomplete:toggle'
|
||||
'escape': 'autocomplete:attach'
|
||||
|
||||
window.keymap.bindKeys '#autocomplete .editor',
|
||||
'enter': 'autocomplete:confirm'
|
||||
|
||||
Reference in New Issue
Block a user