[solved] Trouble mapping autocomplete:toggle to escape


#1

Coming from TextMate 2, I have a hankering to map Atom’s autocomplete to the esc key. I’ve done so…

'.editor':
  'escape': 'autocomplete:toggle'

…but now when the ⌘-F find UI is open, pressing esc doesn’t close it.

Given that keymap, I’d expect esc to trigger autocomplete only when the .editor is focussed, not when .find-and-replace is focussed.

I’m not sure who to report this to. Can someone shed some light on what’s going on here?


#2

I’m guessing here, but couldn’t you do:

'.active.pane':
  'escape': 'autocomplete:toggle'

#3

w00T! That worked; thanks!


#4