On this topic, just in case anyone wanted to use a keyboard shortcut for the slide-out menu.
I wanted to use the “Escape” key for this but that causes a flicker, so use another instead, in this case the ‘Delete’ key 🙂
Other values you could use are listed here: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
jQuery(document).ready(function($){
<!-- Start of Function -->
$(document).on('keydown', function ( e ) {
if (e.key == "Delete") {
$('.slideout-toggle a')[0].click();
}
});
<!-- END of Function -->
})