Keyboard events on body not firing in Template.body.events


#1
Template.body.events({
  'keyup': function(event) {
    event.preventDefault();
    console.log("KEYUP");
  },
});

Why does this not fire when I press any key?


Template.body.events
#2

When body events aren’t working, I meteor add gwendall:body-events and things get better.


#3

Unless something has changed, you cannot use events on the “body” template, to use events on a more “global” template, wrap them in another template and attach events to that template.


#4

Everything certainly got better! Haha, thanks!