jPushMenu
jPushMenu copied to clipboard
closeOnEsc: true
closeOnEsc: true
// Close menu on Esc
if (o.closeOnEsc) {
$(document).keyup(function(e) {
if (e.keyCode === 27) {
jPushMenu.close(o);
}
});
}