Skip to content
Discussion options

You must be logged in to vote

You are not doing anything wrong — nothing in Quarto's lightbox filter is reveal-aware. It builds a plain GLightbox instance and only hooks slide_before_load / slide_after_load for its own captions, so when the lightbox is open both it and reveal.js are still listening for arrow keys, and one keypress moves both.

The instance is exposed as a global, though, so you can suspend reveal's keyboard handling while the lightbox is up:

<script>
  document.addEventListener('DOMContentLoaded', () => {
    lightboxQuarto.on('open',  () => Reveal.configure({ keyboard: false }));
    lightboxQuarto.on('close', () => Reveal.configure({ keyboard: true  }));
  });
</script>

Pull that in with include-afte…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@stefaniecg
Comment options

Answer selected by stefaniecg
Comment options

You must be logged in to vote
1 reply
@cderv
Comment options

cderv Sep 2, 2026
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
revealjs Issues with the revealjs format
3 participants