Autocomplete extension uses core:confirm and core:cancel

This commit is contained in:
Corey Johnson
2012-10-22 15:43:10 -07:00
parent 72a64b8e8b
commit d0e1ee255c
3 changed files with 11 additions and 13 deletions

View File

@@ -39,8 +39,8 @@ class Autocomplete extends View
@editor.on 'before-remove', => @currentBuffer?.off '.autocomplete'
@editor.command 'autocomplete:attach', => @attach()
@editor.command 'autocomplete:cancel', => @cancel()
@command 'autocomplete:confirm', => @confirm()
@editor.command 'core:cancel', => @cancel()
@command 'core:confirm', => @confirm()
@matchesList.on 'mousedown', (e) =>
index = $(e.target).attr('index')

View File

@@ -2,6 +2,4 @@ window.keymap.bindKeys '.editor',
'ctrl-space': 'autocomplete:attach'
window.keymap.bindKeys '.autocomplete .editor',
'enter': 'autocomplete:confirm'
'escape': 'autocomplete:cancel'
'ctrl-space': 'autocomplete:cancel'
'ctrl-space': 'core:cancel'