fix closing dialogs with <esc>
parent
f358142310
commit
858fa28b47
|
@ -581,7 +581,7 @@ lichess.topMenuIntent = function() {
|
|||
};
|
||||
Mousetrap.bind('esc', function() {
|
||||
var $oc = $('.lichess_overboard .close');
|
||||
if ($oc.length) $oc.click();
|
||||
if ($oc[0]) $oc[0].click();
|
||||
else $('#ham-plate').click();
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue