You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to have a more customized key detection system when Escape is pressed.
var msg = Msg(
{
// Any other option you want
close_on_escape: false
});
// Make a function to handle keyboard input
document.addEventListener('keyup', function(e)
{
if(e.keyCode === 27)
{
// Do whatever you want
// msg.is_open() or msg.is_highest() can be useful
}
});