atom/command-palette

can't read property findKeyBindings on undefined

Closed this issue · 2 comments

I'm posting this here immediately instead of chasing it down myself because the property keymap is missing on Atom which seems pretty basic to core code. I searched this repo's source for keymap and got nothing, which makes no sense. I've never had much luck with github search.

   CommandPaletteView.prototype.attach = function(callback) {
      var commands, workSpaceView;
      this.callback = callback;
      this.storeFocusedElement();
      workSpaceView = atom.views.getView(atom.workspace);
      this.keyBindings = atom.keymap.findKeyBindings({        <<------ 
        target: workSpaceView

Atom 209
ubuntu 14.0.4
apm 0.171.0
npm 2.5.1
node 0.10.35
python 2.7.3
git 1.7.9.5

Yeah, it is atom.keymaps now, atom.keymap was removed when the 1.0 API shipped.

It should have been fixed and released awhile ago though via 4c08390

Sorry. My bad. I had copied that code and thought it was your code.