Closed jquimera closed 6 years ago
Just capture the keypress with js and call the hide
function:
$(document).bind('keypress', function(e) {
if ((e.keyCode || e.which) == 27) { // ESC: 27
$("#offcanvas-box").offcanvas("hide");
}
});
New codepen: https://codepen.io/cheich/pen/JLmgLJ
@cheich When we can see version 4.0. ^^
I'm very busy lately, but the next version is almost done. Needs some bug fixings and testings though.
it would be possible close the off-canvas using ESC keyboard.?
https://codepen.io/cheich/pen/XzeRdg