mouseenter
and mouseleave
have nothing to do with keyboard events, and are not fired when an element gains keyboard focus
.
Om je code op zowel mouseenter
als focus
te laten vuren, is dit iets dichterbij:
$("#MesActivites li:eq(0)").bind("mouseenter focus", function (event) {
jQuery("#MesActivites ul:eq(1)").css('top', '45px').css('left', '-1px');
jQuery("#rfr-header-logo").css('display', 'none');
console.log(event.type, " :: ", this.id);
}).bind("mouseleave blur", function (event) {
jQuery("#MesActivites ul:eq(1)").css('top', '-1000px').css('left', '-1px');
jQuery("#rfr-header-logo").css('display', 'block');
console.log(event.type, " :: ", this.id);
});