mirror of
https://github.com/atom/atom.git
synced 2026-02-15 17:15:24 -05:00
Add autocomplete:next/previous events
This commit is contained in:
@@ -27,6 +27,8 @@ class AutocompleteView extends SelectList
|
||||
handleEvents: ->
|
||||
@editor.on 'editor:path-changed', => @setCurrentBuffer(@editor.getBuffer())
|
||||
@editor.command 'autocomplete:attach', => @attach()
|
||||
@editor.command 'autocomplete:next', => @selectNextItem()
|
||||
@editor.command 'autocomplete:previous', => @selectPreviousItem()
|
||||
|
||||
@miniEditor.preempt 'textInput', (e) =>
|
||||
text = e.originalEvent.data
|
||||
|
||||
Reference in New Issue
Block a user