The n shortcut 2 it's not moving


#1

Hello!
Can someone please help me? =)

I am receiving Oops, try again. It looks like the n key isn't moving to the next article. Remember to remove the 'current' class from currentArticle and place it on nextArticle.

This is how my code looks like:

var main = function () {
$('.article').click(function() {
$('.article').removeClass('current');
$('.description').hide();

    $(this).addClass('current');   
    $(this).children('.description').show();

});
$(document).keypress(function(event) {
    if(event.which === 111) {
    $('.current').children('.description').toggle();
    }
    else if(event.which === 110) {
    var currentArticle = $('.current');
    var nextArticle = currentArticle.next();

    currentArticle.removeClass('current');
    nextArticle.addClass('current');
    }
});

}
$(document).ready(main);


#2

@digitalblaster70349,
I tried your code in a windows 8.1 IE11 environment and got a pass....

If you want to use the "n"-key in the preview-screen
you will have to
put the preview on-focus by =clicking= in the green-area
BEFORE you use this "n"-key

Maybe....you have to refresh your Browser

++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom