bind Esc-key
This commit is contained in:
parent
5b2247aa88
commit
4c447f4c8f
|
|
@ -143,6 +143,12 @@ function init(lat, lng) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).keyup(function (e) {
|
||||||
|
if (e.keyCode === 27) { // escape key
|
||||||
|
closePopup();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue