mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 01:10:02 +02:00
Merge 2640412e7f
into 586a233a0d
This commit is contained in:
commit
9dd6fd1bd5
1 changed files with 8 additions and 0 deletions
|
@ -130,6 +130,14 @@ const {
|
||||||
window.addEventListener('scroll', toggleScrollButton)
|
window.addEventListener('scroll', toggleScrollButton)
|
||||||
versionButton?.addEventListener('click', openVersionModal)
|
versionButton?.addEventListener('click', openVersionModal)
|
||||||
versionList?.addEventListener('click', navigateToVersion)
|
versionList?.addEventListener('click', navigateToVersion)
|
||||||
|
|
||||||
|
document.addEventListener('keydown', (e) => {
|
||||||
|
if (e.key === 'Escape' && modal?.hasAttribute('open')) {
|
||||||
|
closeModal(modal)
|
||||||
|
// Remove scroll lock if present
|
||||||
|
document.body.style.overflow = ''
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style is:global>
|
<style is:global>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue