Help with the 'O' shortcut


#1

Here's My code.
I've reviewed it a few times and just can't find my problem, error code is at the bottom of the code.
var main = function(){
$('.article').click(function() {
$('.description').hide();
$('.article').removeClass('current');
$(this).children('.description').show();
$(this).addClass('current');
$(document).keypress(function(event){
if(event.which === 111){
$('.current').children('.description').toggle();
}
});
});
}
$(document).ready(main);

Oops, try again. It looks like the o key isn't opening a description. Remember to toggle the current article's description inside the event handler. Look back at the instructions for the code.


#2

@galexj9,

var main=function() {
     $('.article').click(function() { 
     }); 

     $(document).keypress(function(event) {
     });
   };
  $(document).ready(main);

In our main function we are defining 2 Event-handler
1 a click Event-handler attached to all articles
2 a keypress Event-handler attached to the whole document