1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-06 22:57:21 +02:00

Merge pull request #3778 from tobi-or-not-tobi/feature/open-active-slide-on-enter

feat: Open the active slide from the overview screen on enter
This commit is contained in:
Hakim El Hattab
2025-03-28 14:04:02 +01:00
committed by GitHub
3 changed files with 8 additions and 2 deletions

View File

@@ -399,6 +399,12 @@ export default class Keyboard {
event.preventDefault && event.preventDefault(); event.preventDefault && event.preventDefault();
} }
// Enter to exit overview mode
else if (keyCode === 13 && this.Reveal.overview.isActive()) {
this.Reveal.overview.deactivate();
event.preventDefault && event.preventDefault();
}
// If auto-sliding is enabled we need to cue up // If auto-sliding is enabled we need to cue up
// another timeout // another timeout
this.Reveal.cueAutoSlide(); this.Reveal.cueAutoSlide();