Use class instead of id for autocomplete

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-04-20 14:29:00 -06:00
parent bca7ced632
commit 1a398ffcb9
4 changed files with 16 additions and 16 deletions

View File

@@ -8,7 +8,7 @@ fuzzyFilter = require 'fuzzy-filter'
module.exports =
class Autocomplete extends View
@content: ->
@div id: 'autocomplete', =>
@div class: 'autocomplete', =>
@ol outlet: 'matchesList'
@subview 'miniEditor', new Editor(mini: true)

View File

@@ -1,6 +1,6 @@
window.keymap.bindKeys '.editor',
'escape': 'autocomplete:attach'
window.keymap.bindKeys '#autocomplete .editor',
window.keymap.bindKeys '.autocomplete .editor',
'enter': 'autocomplete:confirm'
'escape': 'autocomplete:cancel'